Another BlogEngine Extension

Deutschsprachige User aufgepasst! Es folgt Englisch!

Well, it was a long time of nothing here on blog.furred.net, but today I wrote another extension for BlogEngine.net.

It was a quit simple task, because I just used two nice libraries, which are already existing for serveral years.

I had the idea for this extension a few weeks ago, but unfortunately I forgot the name of this libary. lol! But I found it again. :-)

You may ask what the extension is for, and I will answer with two words: wiki-like (one) formatting (two). Yeah. That’s it!

The whole thing works quite fine, even with my syntax highlighter. Before you ask: No, I’m not using TinyMCE or some other wysiwyg editor to write my blog posts. Plain old textarea (or let’s say multiline textbox ;-) )

Lets come to the libraries I mentioned.
The first one ist a Markdown library for .net written by Milan Negovan.

And the other one is Smarty Pants. A .NET version comes with Markdown.Net

Please notice:
Original Markdown and SmartyPants © John Gruber
Markdown.NET and SmartyPants.NET © Milan Negovan

The extension will be released when I know if it works with the current version of the engine. I had no time to perform an upgrade.

Update 07.Dec.2007 Today I performed an upgrade to the most recent BlogEngine version from svn, and tested the extension. It worked, so I put the code online. So grab the extension now! :)

Update 17.Dec.2007 Mh. It seems that nobody is using this extension. Because today I found out, that there was a little mistake in the uploaded version. The text is formatted, but it isn’t replaced, so the original text is written to the user. Download is updated, now it works. :)

I’m already using it, and yes, this post is written with it.

Here is some demonstration of the features

Heading..

Another heading… <- ellipsis

Oh, it’s a quote!

Nested quotes?

Nested quotes!

harhar
yay?

yay!


## Heading..
### Another heading... <- ellipsis


> Oh, it's a quote!

Nested quotes?

> Nested quotes!
>
> > harhar  
> > yay?
>
> yay!


 
 

Kommentare (4) -

 
20 Juni
2008
 
guest
06:41
hi.. we can not find any set up instructions here, like where to place the dlls and the .cs file etc., can u pls put some details here? thks
guest
 
 
20 Juni
2008
 
11:02
Just put the dlls into the bin directory of your BlogEngine installation, and TextFormatter.cs should be placed in App_Code/Extensions.

Smile
crazy-weasel
 
 
07 Mai
2009
 
06:22
I installed the code and it seems to be working.  However, I have a letter I wrote to someone that I want to quote in my blog post.

I want the " marks to look like the ones you showed in the examples at the end of your post.  Just putting " marks doesn't do it automatically.  What else do I need to do?  Thanks!
Joshua
 
 
12 Mai
2009
 
19:22
@Joshua:

You have to style it with CSS.

Here is my css code for the blockquotes:

blockquote {
  background: url(images/quote.gif) no-repeat;
  display: block;
  font-weight: bold;
  padding-left: 28px;
}

As you can see, I'm using a picture for the " marks.

Here is the path to mine:
blog.furred.net/themes/mooblogv4/images/quote.gif

Feel free to use it.. (or create your own in the color you like etc.)
crazy-weasel
 

Pingbacks and trackbacks (2)+

Kommentar schreiben




biuquote
  • Kommentar
  • Live Vorschau
Loading