Mike Borozdin's Blog

A blog about programming, web and IT in general

Syntax Highlighting In BlogEngine.NET

It is not obvious that BlogEngine.NET has a built-in syntax highlighting extension. I mean the current versions 1.3.1, I'm not sure about the old versions though. Anyway you can find it in the extensions settings, it is enabled by default.

So, if you need to paste a code snipped, just paste it in the text area and surround it with the [ code:<language>][/code ] tags

<language> may has one of the following values:

  • c#
  • vb
  • js
  • html
  • xml
  • tsql
  • msh (Windows PowerShell script language)

It can take some other parameters, like ln for toggling line numbers, however if you set this parameter your layout will get broken for some reasons.


Tags:
Posted by Mike Borozdin on Wednesday, June 18, 2008 10:36 AM GMT
  Shout it Kick it!  
Permalink | Comments (1) | Post RSSRSS comment feed

Comments

Busby SEO Test United States

Monday, December 08, 2008 5:33 PM GMT

Busby SEO Test

Nice post about Syntax Highlighting In BlogEngine.

Comments are closed