epitron / redmine_ultraviolet

Advanced syntax highlighting for Redmine source code repositories (using Ultraviolet, which is based on Textmate syntax files).
Other
60 stars 20 forks source link

Make line numbers linkable #4

Open fireglow opened 14 years ago

fireglow commented 14 years ago

In the default highlight engine, the line-numbers are linkable, with HTML anchors. I would like to see this behavior restored when I use redmine_ultraviolet.

epitron commented 12 years ago

Unfortunately, Ultraviolet would have to be modified for this to work, since it's generating the line numbers.

Another possibility is to modify the HTML after it's been output from Ultraviolet. (Maybe with a regular expression, or nokogiri.)

Would you like to take a stab at one of those? :)