Does anyone know if there's a jQuery plugin to format code, XML or HTML?
I'm showing the user some code on an html page. I use google prettify for coloring the syntax, but would like some indentation and linebreaks too. any suggestions?
Does anyone know if there's a jQuery plugin to format code, XML or HTML?
I'm showing the user some code on an html page. I use google prettify for coloring the syntax, but would like some indentation and linebreaks too. any suggestions?
Here http://www.webdesignbooth.com/9-useful-javascript-syntax-highlighting-scripts/ the "beautyOfCode" is mentioned as jquery plugin.
Have a look also at http://stackoverflow.com/questions/160694/syntax-highlighting-code-with-javascript
I made jQuery.Syntax : http://www.oriontransfer.co.nz/software/jquery-syntax
It integrates very well with jQuery, especially if you are doing dynamic formatting. Have a look at this example : http://www.syntax-highlighting.com/
I'm probably biased but I'd say its pretty good and easy to use.