开发者

Showing a code snippet in an HTML page

开发者 https://www.devze.com 2023-01-27 06:53 出处:网络
Like there is a code sample inserter in the stackoverflow\'s WYSIWYG text editor (see image here) I want such a formatter to show a code snippet in an html page with colored keywords and strings etc.

Like there is a code sample inserter in the stackoverflow's WYSIWYG text editor (see image here)

I want such a formatter to show a code snippet in an html page with colored keywords and strings etc. Pl开发者_JAVA技巧ease help.


Check out google code prettify: http://code.google.com/p/google-code-prettify/


Check http://code.google.com/p/syntaxhighlighter/ it's pretty popular and awesome.


This maybe? http://plugins.jquery.com/plugin-tags/syntax


Geshi is quite awesome too: http://qbnz.com/highlighter/demo.php

0

精彩评论

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