这两天发现一个老外用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>之前插入以下代码:


技术大类 » PHP/JS/Shell | 评论(8) | 引用(0) | 阅读(11721)
Jeffy Homepage
2007-4-23 21:01
还不错,找这个很久了,谢谢老兄
路过
2007-4-25 16:36
这东西我还真找了1个月,实话
济南爱问 Homepage
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 Email Homepage
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 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]