Skip to content

This Pygments plugin adds new lexers for shellconsole output.

Notifications You must be signed in to change notification settings

joapuiib/pygments-shell-console

Repository files navigation

Pygments Shell Console

Python PyPi

This Pygments plugin adds new lexers for shellconsole output.

The lexers are:

  • ShellConsoleLexer: Based in ShellSessionBaseLexer, extends its behavior to recognize the prompt elements and highlight them.

    Also, it adds support for highlighting the following commands output:

    • Uses DiffLexer to highlight diff and git diff output.
    • GitStatusLexer: Adds support for highlighting git status output.
    • GitShowLexer: Adds support for highlighting git show output.
    • GitLogLexer: Adds support for highlighting git log output.
    • GitPrettyLogLexer: Adds support for highlighting git log output, following the format:
      log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
      

Examples of the result can be found here.

About

This Pygments plugin adds new lexers for shellconsole output.

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages