Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments_shell_console-0.8.0.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

pygments_shell_console-0.8.0-py2.py3-none-any.whl (20.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page