4 ms·
pygmentize replicates the syntax highlighting featured here, except it is a bit more configurable: http://pygments.org/docs/cmdline/ http://pygments.org/docs/cm
by iso8859-1 13y ago
pygmentize replicates the syntax highlighting featured here, except it is a bit more configurable: http://pygments.org/docs/cmdline/ http://pygments.org/docs/cmdline/
- nojhan 13y agoIt's not really a replication, as colout just _USE_ the pygments library. Colout just add the possibility to color code that is located inside a text that should not be colored, which pygmentize cannot do: colout -a -s Python monokai < code.py # just like pygmentize colout "^(:*)'(:*)'(:*)$" blue,python,blue < code.py # just the code 'inside quotes', not the rest of the line