Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



You know, cgit does come with two example syntax highlighting scripts... :)


That's correct. (I think the old version I'm using maybe only with one.) That script is what I hooked my custom logic into.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: