Try this for automatically color your code: http://alexgorbatchev.com/SyntaxHighlighter/
For quickly tidying up your code you can use http://jsfiddle.net/
Just insert the code and press “tidy up”
3
solved JS libraries to prettify/ highlight the HTML Code syntax automatically? [closed]