开发者

formatting sourcecode using jQuery

开发者 https://www.devze.com 2023-01-04 07:17 出处:网络
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开发者_Python百科 prettify for coloring the syntax, but would li

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开发者_Python百科 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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消