XSyntaxHighlighter is an XsltDb DotNetNuke Module that includes the
SyntaxHighlighter scripts on a page, enabling syntax highlighting of code snippets.
This example loads scripts for Javascript, CSS, C#, VB, SQL and XML, but it's very simple to add other brushes: just include the necessary .js file by looking at
the list of supported bruses.
Some usage samples
(module is included in this page)...
CSS
tr.even {background-color: #eee;}
tr.odd {background-color: #ddd;}
Javascript
jQuery(document).ready(function() {
setTimeout("jQuery('#myTable tr:odd').addClass('odd');", 1000);
setTimeout("jQuery('#myTable tr:even').addClass('even');", 1000);
});
Visual Basic
Public Function Foo(byval a as Integer, byval b as Integer) as Integer
Return a + b
End Function