highlight

Convert source code to formatted text with syntax highlighting

brewmacoslinux
Try with needOr install directly
Source

About

Convert source code to formatted text with syntax highlighting

Commands

highlight

Examples

Highlight a Python file and display as formatted text$ highlight -O ansi script.py
Convert source code to HTML with line numbers$ highlight -O html -n input.js > output.html
Highlight code with a specific color theme$ highlight -O ansi -t monokai code.cpp