Package: cgit Version: 0.10.2.git2.0.1-3For making syntax highlighting really work in CGit, I had to add the --inline-css cmdline option to the highlight exec parameter in
/usr/lib/cgit/filters/syntax-highlighting.sh (at the end of the file) My working syntax-highlighting.sh file now looks like this: """ # [...] # # highlight versions 2 and 3 have different commandline options. Specifically, # the -X option that is used for version 2 is replaced by the -O xhtml option # for version 3. # # Version 2 can be found (for example) on EPEL 5, while version 3 can be # found (for example) on EPEL 6. # # This is for version 2 #exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null # This is for version 3 exec highlight --inline-css --force -f -I -O xhtml -S "$EXTENSION" 2>/dev/null """For enabling/testing syntax highlighting, one also has to put this line in /etc/cgitrc:
""" # Highlight source code source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh """ Greets, Mike -- DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: [email protected], http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/mailxchange/kronolith/fb.php?u=m.gabriel%40das-netzwerkteam.de
pgpT7JbkVatcH.pgp
Description: Digitale PGP-Signatur

