什么代码突出显示了lib的库? [英] What code highlighting libs are there for Java?

查看:125
本文介绍了什么代码突出显示了lib的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望它们易于捆绑,几乎没有依赖性且易于使用。

I'd like them to be easy to bundle, with few dependencies and easy to use.

推荐答案

你想要吗?突出显示Java代码或使用Java库突出显示其他一些代码?

Do you want to highlight Java code or use a Java lib to highlight some other code?

我使用这两个: https://jhighlight.dev.java.net/ (服务器端)for xml和 http://code.google.com/p/syntaxhighlighter/ (js lib)其他内容。后者有一种叫做刷子的东西,它们是可插拔的。几个langauges。如果您正在进行简单的突出显示,我建议采用js方法。

I use these two: https://jhighlight.dev.java.net/ (server-side) for xml and http://code.google.com/p/syntaxhighlighter/ (js lib) for other stuff. The latter has something called 'brushes' which are "pluggable" .js for several langauges. If you are doing simple highlighting, I recommend the ,js approach.

这篇关于什么代码突出显示了lib的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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