使用chili吧,下面是他的介绍:
Chili is a code highlighter based on jQuery
...............................................................................
Copyright 2007 / Andrea Ercolino
-------------------------------------------------------------------------------
LICENSE: http://www.opensource.org/licenses/mit-license.php
MANUAL: http://www.mondotondo.com/aercolino/noteslog/?page_id=79
UPDATES: http://www.mondotondo.com/aercolino/noteslog/?cat=8
===============================================================================
|||||||||||||||||| |||||||||||||||||||
|||||||||||||||||| FULL DOCUMENTATION IS AVAILABLE ONLINE |||||||||||||||||||
|||||||||||||||||| |||||||||||||||||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Overview
------------------------------------------------------------------------------- Chili is syntax highlighting for the browser. You just put the code you
want highlighted in a <code> element AS IS, and this script will highlight
all the items of the language the code is written in.
.................
以下省略
Chili is a code highlighter based on jQuery
...............................................................................
Copyright 2007 / Andrea Ercolino
-------------------------------------------------------------------------------
LICENSE: http://www.opensource.org/licenses/mit-license.php
MANUAL: http://www.mondotondo.com/aercolino/noteslog/?page_id=79
UPDATES: http://www.mondotondo.com/aercolino/noteslog/?cat=8
===============================================================================
|||||||||||||||||| |||||||||||||||||||
|||||||||||||||||| FULL DOCUMENTATION IS AVAILABLE ONLINE |||||||||||||||||||
|||||||||||||||||| |||||||||||||||||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Overview
------------------------------------------------------------------------------- Chili is syntax highlighting for the browser. You just put the code you
want highlighted in a <code> element AS IS, and this script will highlight
all the items of the language the code is written in.
.................
以下省略
函数,流程控制之类的关键字,字符,数字等等
你可以用个XML文件专门存放函数啊,流程之类的做对比!
只看你如何做判断!
需要原码我发给你。
可以将 php css javascript html 的代码按关键字、符号着色,输出的效果和 DreamWeaver 的源码视图中的几乎相同(配色和关键字都是从DW的文件中找出的)。
支持以上几种代码的混合。但是现在这个看不到了。