Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Files

Latest commit

 

History

History
11 lines (8 loc) · 411 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 411 Bytes

pygments-html-ext

Example usage:

pygmentize -f pygments-html-ext/formatters/html_slice.py:HtmlSliceFormatter -x -O linenos=table,hl_lines="28 29 30",begin_line=8,end_line=32 -o output.html sample_python_script.py

Where:

  • begin_line and end_line define the line range to extract from the entire file.
  • hl_lines is a space-separated string of line numbers that need to be highlighted.