这两天发现一个老外用JavaScript编写的好东西:dp.SyntaxHighlighter。它可以在网页中对各种程序源代码语法进行加亮显示。支持当前流行的各种编程语言:C#、CSS、C++、Delphi、Java、JavaScript、PHP、Python、Ruby、SQL、Visual Basic、XML / HTML
下载地址:http://www.dreamprojections.com/syntaxhighlighter/
演示地址:http://www.dreamprojections.com/syntaxhighlighter/Tests/PHP.html
使用方法:
1、假设网页文件test.htm存放在一个目录,则将dp.SyntaxHighlighter解压缩到该目录下的子目录,假设为images
2、在网页的<head></head>之间插入以下代码:
3、在网页要显示程序源代码的地方插入以下代码(其中的class="js"表示以js语法显示源代码,其他可设定的class值分别为c#、css、c、delphi、java、js、php、python、ruby、sql、vb、xml):
4、在网页尾部的</body>之前插入以下代码:
下载地址:http://www.dreamprojections.com/syntaxhighlighter/
演示地址:http://www.dreamprojections.com/syntaxhighlighter/Tests/PHP.html
使用方法:
1、假设网页文件test.htm存放在一个目录,则将dp.SyntaxHighlighter解压缩到该目录下的子目录,假设为images
2、在网页的<head></head>之间插入以下代码:
3、在网页要显示程序源代码的地方插入以下代码(其中的class="js"表示以js语法显示源代码,其他可设定的class值分别为c#、css、c、delphi、java、js、php、python、ruby、sql、vb、xml):
4、在网页尾部的</body>之前插入以下代码:
Jeffy
2007-4-23 21:01
还不错,找这个很久了,谢谢老兄
路过
2007-4-25 16:36
这东西我还真找了1个月,实话
济南爱问
2007-7-3 15:32
好东西啊
ddd
2008-3-2 21:26
好,不错
唐海
2008-4-24 10:48
怎么用不起啊
唐海
2008-4-24 10:49
怎么不能用啊
LC
2011-9-24 17:52
想问一下 新浪的博客 如何用啊
louis vuitton uk
2011-11-22 17:34
This louis vuitton uk for sale belongs to the sounding just what are termed as Louis Vuitton vintage best sellers, many other products and services for the reason that range appearing companies.You will easily notice the unfold zippers of this coach outlet store online. That is the decoration. There are some inside pockets for you as well. They are easy to match your clothes and to carry.Let us inspire your inner beauty with fine christian louboutin sale. Purse the elegance in bridal wedding. Enjoy the fashion.
分页: 1/1
1
1
忙碌的一天,有意思的一天[原创]
北国春风──梨园主题公园[原创]

2007-4-19 14:56 | by




![订阅回忆未来[张宴]的博客](http://pic1.s135.com/images/rewin/rss.gif)




