用于在HTML中进行语法着色的工具 [英] tool for syntax coloring in html

查看:115
本文介绍了用于在HTML中进行语法着色的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一些在线文档中,例如:

http ://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-ZH-17.html
http://www.haskell.org/hawiki/HaskellDemo


代码是语法颜色。


是否有一个工具可以生成带有语法着色的html代码?


谢谢。


Xah
xa*@xahlee.org

a ?? http://xahlee.org/

解决方案

Xah Lee在一些在线文档中写道:

,例如:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu .edu / home / dorai / t -... me-ZH-17.html
http://www.haskell.org/hawiki/HaskellDemo

代码是语法颜色。

是否有工具使用语法着色在html中生成代码?




它是和它的名为highlight(在大多数Linux发行版中都可用)


-

Maciej" Fiedzia" Dziardziel(fiedzia(at)fiedzia(dot)prv(dot)pl)
www。 fiedzia.prv.pl


重力不是我的错 - 我投票给魔术贴了!


Xah Lee在一些在线文档中写道:

,例如:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-ZH- 17.html
http://www.haskell.org / hawiki / HaskellDemo

代码是语法颜色的。

是否有一个工具可以用html生成具有语法着色的代码?



我使用SilverCity和这个配方制作彩色代码清单r

pysqlite文档:
http://aspn.activestate.com/ASPN/Coo.../Recipe/252170


这是文档来源:
< a rel =nofollowhref =http://initd.org/svn/pysqlite/pysqlite/trunk/doc/usage-guide.txt\"target =_ blank> http://initd.org/svn/pysqlite /pysqli...sage-guide.txt


这就是结果:
http://initd.org/pub/software/pysqli...age-guide.html


HTH,


- Gerhard


Gerhard写道:< blockquote class =post_quotes> http:// initd .org / pub / software / pysqli ... age-guide.html




我建议您使用更大的f代码是什么?很难用我的

当前屏幕分辨率来解析。顺便说一句,pysqlite2很酷;)


Michele Simionato


in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?

Thanks.

Xah
xa*@xahlee.org
a?? http://xahlee.org/

解决方案

Xah Lee wrote:

in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?



It is and its called highlight (available in most linux distributions)

--
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl

Gravity isn''t MY fault--I voted for velcro!


Xah Lee wrote:

in some online documentations, for examples:

http://perldoc.perl.org/perlref.html
http://www.ccs.neu.edu/home/dorai/t-...me-Z-H-17.html
http://www.haskell.org/hawiki/HaskellDemo

the codes are syntax colored.

Is there a tool that produce codes in html with syntax coloring?



I use SilverCity and this recipe to produce colored code listings for
the pysqlite documentation:
http://aspn.activestate.com/ASPN/Coo.../Recipe/252170

This is the documentation source:
http://initd.org/svn/pysqlite/pysqli...sage-guide.txt

This is the result:
http://initd.org/pub/software/pysqli...age-guide.html

HTH,

-- Gerhard


Gerhard wrote:

http://initd.org/pub/software/pysqli...age-guide.html



Can I suggest you to use a larger font for the code?It is pretty
difficult to parse with my
current screen resolution. BTW, pysqlite2 is pretty cool ;)

Michele Simionato


这篇关于用于在HTML中进行语法着色的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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