.NET Syntax Highlighter

My old website had an online syntax highlighter tool. I’ve since migrated to WordPress and I’m no longer able to host this tool. I’m posting the source code used instead – there are probably more sophisticated options available, but hopefully someone will find this useful!

Use the FormatCode method to generate a formatted HTML version of your code and include the CSS for styling. Supports VBScript, BAT, KiXtart, PowerShell, HTA & TSQL.

CSS:

Posted in .NET.