by Jeff
19. May 2009 07:54
Formatting code with blogengine.net is easy and is done using [code] command inside your posts. [code] starts a section and [/code] ends a section. When starting a code section a language needs to be specified by adding :c# or :js to the code start section.
You will have pretty and well formatted code blocks without changing the html inside your post using the [code] command.
Example code
A code section will look like this without the minus signs.
[-code:js]
Var test = Document.getElementById(“test”);
[/code]