How Do I Print Codes With Syntax Highlighting?
How Do I Print Codes With Syntax Highlighting? There’s syntax highlighting definitions for many languages out there. The default look is usually optimised for screen display, but you can fix that. Simply open the file on command line with vim <filename> , type :syntax on<ENTER> , then :hardcopy<ENTER> to print it. Quit Vim with :q!