Take the 2-minute tour ×

Where can I find a simple JavaScript based HTML syntax highlighter?
Simpler is better, and I don't need any line numbers or tricks, just added colors.

If it is the same colors as dreamweaver, even better!

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

Here are some :

share|improve this answer
add comment

There's also google's prettify.js, which is the syntax highligher used on this site:


share|improve this answer
Nice one and simple, i will try to remember it. Last one that impressed me (but it isn't in javascript) is the kasyntaxy@appspot.com bot in Google Wave as it pretty much work in real time, as-you-type. –  VirtualBlackFox Nov 5 '09 at 13:19
add comment

If you are using Dojo a nice one is dojox.highlight extension.

Demo page is here.

share|improve this answer
add comment

Your Answer


