I\'m using Prism and its working well for CSS:
p { color: red }
but
The best solution is to save the html you want highlighted into a seperate file. You'll need to include the file highlight plugin into your js.
The syntax highlighting will be worked out from the extension