Monday, November 09, 2009

SyntaxHighlighter

SyntaxHighlighter is a fully functional self-contained code syntax highlighter

This is an example usage of syntax highlighting:

This is a block of SQL:
 --this is a comment
 Select * from tableName where Iam='you'
 and my='crazy' and theyAre=false
 and thisIs like 'this or that%'
 
This is a block of C# code:
 //This is a commment... just a comment
 private void DoSomething()
 {
  return null;
 }
 

Here is a simple example which will work so long as you don't have complex html (in that case see the documentation):

    
     //This is a commment... just a comment
     private void DoSomething()
     {
      return null;
     }
     

No comments: