I've run across a cool syntax highlighter for use on web sites called dp.SyntaxHighlighter. It highlights (and more) the following languages:
- C#
- CSS
- C++
- Delphi
- Java
- JavaScript
- PHP
- Python
- Ruby
- SQL
- Visual Basic
- XML / HTML
Not only that, but it does a fantastic job of rendering too.. check out this little snippet of C# code.
You have to install some javascript(s) and styles along with your blog engine, but once that's done, all you have to do to get the output you see here is wrap your code in some <textarea> tags.
-Brendan
Posted
11-08-2006 1:15 PM
by
Brendan Tompkins