This Pygments plugin adds new lexers for shellconsole output.
The lexers are:
-
ShellConsoleLexer: Based inShellSessionBaseLexer, extends its behavior to recognize the prompt elements and highlight them.Also, it adds support for highlighting the following commands output:
- Uses
DiffLexerto highlightdiffandgit diffoutput. GitStatusLexer: Adds support for highlightinggit statusoutput.GitShowLexer: Adds support for highlightinggit showoutput.GitLogLexer: Adds support for highlightinggit logoutput.GitPrettyLogLexer: Adds support for highlightinggit logoutput, 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)'
- Uses
Examples of the result can be found here.