在HTML页面中显示代码片段 [英] Showing a code snippet in an HTML page

查看:718
本文介绍了在HTML页面中显示代码片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像在stackoverflow的所见即所得的文本编辑器中有一个代码示例插件(在这里看到图片

我希望这样的格式化程序能够在带有彩色关键字和字符串的html页面中显示代码片段,请帮助。 b

解决方案

检查 http:// code .google.com / p / syntaxhighlighter /
非常受欢迎,真棒。


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. Please help.

解决方案

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

这篇关于在HTML页面中显示代码片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆