I'm calling expect dynamically out of CGIT (the git repo serving CGI program). The expect script runs Vim in pseudo-terminal, to load a source file and syntax-colorize it via :TOHtml. That HTML is then integrated into the file view generated by CGIT.
This is not done for every file type; a master shell script dispatches different coloring strategies based on suffix.
This is not done for every file type; a master shell script dispatches different coloring strategies based on suffix.