Gitweb syntax highlight

One project that lead to the gitweb annoyed me, There is no code coloring in the tree. Easy way to color syntax tree in the part of gitweb is installing the package highlight and add the following line to /etc/gitweb.conf or where you are located configuration file gitweb

$feature{‘highlight’}{‘default’} = [1];

For Debian package in the package system for other distributions haven't checked.

ps There is an alternative option to make changes to files gitweb but it seemed pointless as there is a simple option 🙂

leave a reply

Your email address will not be published. Required fields are marked *

anti SPAM *