1119: Syntax Highlighting inside diff view

sebastie*********@gmai***** (Google Code) (Is this you? Claim this profile.)
May 13, 2009
What version are you running?
1.0 RC1

What's the URL of the page this enhancement relates to, if any?
Diff view pages.

Describe the enhancement and the motivation for it.
It could be nice to add a functionality to get a syntax highlighting of the 
code (keywords like if, then, else, function names, etc...) for widespread 
languages (C++, Python, Java...) and an easier way to add other languages 
as plugins.

Is this something already planned ? I could not find it in the issues list.
chipx86
#1 chipx86
It already exists. Make sure you have Pygments installed and Syntax highlighting
enabled in Settings and for your user.
  • +NotABug
#2 sebastie*********@gmai***** (Google Code) (Is this you? Claim this profile.)
Yes sorry it was working, it's just that the default highlighting is not really what 
I expect. I modified the htdocs/rb/css/syntax.css file to render it the way our team 
like. Is there a cleaner way to do it ? Will this modification be overwritten at the 
next RB upgrade ?

Thank you
chipx86
#3 chipx86
Yes, it will be overwritten, and there's no way of keeping your own syntax
highlighting in there. Allowing everybody to customize this would just complicate
things, and it really hasn't been requested before.