Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您还可以尝试客户端/javascript 荧光笔:Google Code Prettify
(这是 stackoverflow.com/ 和 code.google.com/ 上使用的)
You could also try a clientside/javascript highlighter: Google Code Prettify
(This is the one used on stackoverflow.com/ and code.google.com/)
假设您想要除内置 语法荧光笔 之外的其他内容,< a href="http://qbnz.com/highlighter/" rel="nofollow noreferrer">GeSHi 看起来可能符合您的要求:
Assuming you want something other than the built-in syntax highlighter, GeSHi looks like it might fit your requirements:
PHP 有一些内置函数用于此目的。检查highlight_string或highlight_file是否适合您
http://www.php.net/highlight_file
http://www.php.net/highlight_string
PHP has some built in functions for this purpose. Check if highlight_string or highlight_file will work for you
http://www.php.net/highlight_file
http://www.php.net/highlight_string