Default Blue Green Red
Pages: [1]
  Print  
Author Topic: Syntax Highlighter  (Read 114 times)
BC_Programming
Administrator
Newbie
*

Total Thanks: 0
Posts: 15


View Profile Email
« on: January 11, 2010, 10:41:42 AM »

With a bit of elbow grease, I managed to coax the Syntax Highlighter mod into working with the Dark Light MC Theme I am using.

This is a very useful modification, especially for the snippets forum. It essentially adds capabilities to the standard "code" bbcode tag. by saying code=<language> one can do this:

Code: (vb)

'Small Visual Basic Function to Compute the factorial of a number.
Public Function Factorial(ByRef Num as Double) as Double
    Factorial = Num * Factorial(Num-1)
End Function


Supported languages include cpp, c, c++, c#, c-sharp, csharp, css, delphi, pascal, java, js, jscript, javascript, php, py, python, rb, ruby, rails, ror, sql, vb, vb.net, xml, html, xhtml, xslt.

I recommend All snippet submissions use this new tag.
Logged
Pages: [1]
  Print  
 
Jump to: