Skip to content

forkeith/sublhighlight-py

 
 

Repository files navigation

Sublime Highlight

Description:

Line-buffered commandline output colorization compatible with Sublime Text's syntax-highlighting.

Examples:

  • cat hl.py | python3 hl.py -s Python -c Mariana | less -r
  • cat helloworld.c | python3 hl.py -s C -c Celeste | less -r
  • tail -f log.txt | python3 hl.py -s CustomLog -c Monokai

Installation:

  • pip install -r requirements.txt
  • (optional) chmod +x /path/to/hl.py && ln -s /path/to/hl.py /usr/bin/hl

How to:

  • Export a syntax form Sublime Text:
    • Tools > Developer > View Package File...
    • Type the name of the syntax you want to export
    • Create syntax/Name.sublime-syntax (extension is required)
    • Use with -s Name
  • Export a color-scheme from Sublime Text:
    • Tools > Developer > View Package File...
    • Type the name of the color-scheme you want to export
    • Create color-scheme/Name.sublime-color-scheme (extension is required)
    • Use with -c Name
  • Create a custom syntax:
  • Create a custom color-scheme:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%