Subversion/Apache 服务器的代码高亮显示
我一直在寻找一种方法来将代码突出显示添加到我的 Subversion 和托管我的本地 Subversion 项目的 Apache 安装中。 它在安装在虚拟机中的 Fedora Core 10 上运行。 我想使用 syntaxhighlighter 但我不知道如何让 Apache 自动插入将所需的 javascript 放入我的源代码文件中(不污染源代码)。
是否可以修改我现有的 Apache 2.2/SVN 1.5.5 安装以使用语法荧光笔? (这就是它的样子)
有一个由 Collabnet 托管的名为 WebSVN 的项目似乎想要内置类似的东西,但是在我费尽心思让 web subversion 正常工作(并且 Fedora 配置得很好)之后,我不想使用 OpenCollabnet 版本的 WebSVN。 另外他们的版本不支持最新的subversion和Apache。
如何向为 subversion 源提供服务的 Apache 添加某种形式的代码突出显示?
I have beeen looking around for a way to add code highlighting to my Subversion and Apache installation that hosts my local subversion projects. It runs on Fedora Core 10 installed in a VM. I would like to use syntaxhighlighter but I have not idea how i can get Apache to automatically insert the required javascript into my source code files (without tainting the source).
It is possible to modify my existing installation of Apache 2.2/SVN 1.5.5 to use syntaxhighlighter? (this is what it looks like)
There is a project called WebSVN hosted by Collabnet that seems to have something similar built in, however after the trouble I've gone to get the web subversion working (And Fedora configured nicely), I don't want to use OpenCollabnet's version of WebSVN. Plus their version does not support the latest subversion and Apache.
How can I add some form of code highlighting to my Apache that serves the subversion source?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 Trac 作为基于网络的项目管理软件。 它确实提供跟踪和 wiki,但它还提供了一个具有语法着色的存储库浏览器。 它支持一堆不同的语法着色器。 GNU Enscript、SilverCity、Pygments
I was using Trac for web-based project management software. It does issue tracking and wiki, but it also provides a repository browser which has syntax coloring. It supports a bunch of different syntax colorers. GNU Enscript, SilverCity, Pygments
Trac 已安装,我检查了 Enscript、SilverCity 和 Pygments。
前两个没有 FC10 的软件包,但是有一个 Pygments 软件包......看起来相当不错。
此处演示
C++ 突出显示是我感兴趣的,它看起来不错:C++ 高亮
虽然 Pygments 显然不如语法高亮器好,但如果有人知道简单的设置方法,我仍然更喜欢使用它。
Trac is installed, I checked out Enscript, SilverCity and Pygments.
There were no packages for FC10 for the first two, but there was a Pygments package.....it looks rather nice.
Demos here
The C++ highlighting is what i'm interested in, it looks decent: C++ Highlighting
Although Pygments is obviously not as nice as syntaxhighlighter, which I would still prefer to use if someone knows an easy way to setup.