svnapache2syntax-highlightingmod-dav-svn

How to display language syntax coloring with the DAV SVN module?


When viewing a plain text code file (i.e. ".py", ".c", ".cpp", ".m", ".as", ".js", etc.) is it possible to have the DAV SVN module render language-specific syntax coloring?

That would be amazing. Currently it's all just black plain text, but it'd great to get this working so it's easier to read code in the browser, for those folks here that just need quick browser access to the svn, without requiring opening the code in an IDE or fancy text editor like Notepad++.


Solution

  • I don't believe DAV SVN will do this itself. The best it can do is serve documents with the correct Content-Type headers. You can do XSLT transformations on the directory listings, but that doesn't help you much.

    I'm afraid you're going to have to switch to a heavier-weight browsing program if you want pretty output. One option would be websvn + enscript.