Output an HTML file, with additional formatter options (full page, with line numbers)

pygmentize

pygmentize -f html -O "full,linenos=True" -o {{output_file.html}} {{input_file}}

click the source code to copy install pygmentize on any operating system with command-not-found.com