- So first up you need to put this in the page head just before the </head> tag:
- Then you simply surround any code in these tags:
<pre class="brush: csharp"></pre>
Saturday, 3 April 2010
I need to colour my code samples to make it more readable and more like your IDE. I have been putting spans around each key word to colour manually and being a developer I know there must be an easier way! So I did some research and found that it is all about SyntaxHighlighter! Here is how to use Syntax Highlighter to colour your code.