Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [WebSVN] Syntax highlight

Discussion topic

2020-04-07: This site is going to be decommissioned and shut down on 2020-07-01. Please copy and archive any data you wish to keep before that date.

Back to topic list

[WebSVN] Syntax highlight


Author philfry
Full name Philippe
Date 2013-09-25 08:56:56 PDT
Message Hi all,

it bugs me that websvn only passes the correct language to enscript or geshi if either the file extension exists and is well known or the filename is forced to a specific language in the config. I'd like websvn to honor the mime type. For example, I save my perl scripts without a filename extension but I do set the mime type to either text/x-perl or application/x-perl.

This patch -- which applies to 2.3.3 and probably to the current svn trunk -- makes websvn try the mime type appendix if neither the extension nor the filename was found in $extEnscript or $extGeshi.

* mime type is "text/x-perl" -> try "perl"
* mime type is "application/javascript" -> try "javascript"



« Previous message in topic | 1 of 1 | Next message in topic »


Show all messages in topic

[WebSVN] Syntax highlight philfry Philippe 2013-09-25 08:56:56 PDT
Messages per page: