Gitweb syntax highlight

For one project that I lead in gitweb it annoyed me, that there is no coloring of the code in the tree. Лесен начин как да оцветите синтаксиса в tree частта на gitweb е като инсталирате пакета highlight и добавите следния ред в /etc/gitweb.conf или където ви се намира конфигурационния файл на gitweb

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

For the Debian package it is in the package system for other distributions I have not checked.

ps There is an alternative option by making changes to the gitweb files, but it seemed pointless to me as there is a simple option 🙂

Leave a Reply

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

Anti SPAM *