GNOME Bugzilla – Bug 792661
use pygments to do syntax highlighing
Last modified: 2018-03-23 21:24:05 UTC
gtk-doc uses external programs to generated syntax highlighted code snippets. Instead of shelling out to highligh/source-highlight or vim, we should see if we can use the pygments python library. This can be faster and be more portable. This is the code in question: https://git.gnome.org/browse/gtk-doc/tree/gtkdoc/fixxref.py#n223 and here are samples for pygments http://pygments.org/docs/quickstart/
Done in git for mkhtml2 commit c778283dcb9ba11d93a1c3281b9567e97b3f8770 Author: Stefan Sauer <ensonic@users.sf.net> Date: Sun Mar 18 19:33:20 2018 +0100 mkhtml2: first stab add syntax hightlighing