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.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

pygments_shell_console-0.8.1-py2.py3-none-any.whl (20.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pygments_shell_console-0.8.1.tar.gz.

File metadata

File hashes

Hashes for pygments_shell_console-0.8.1.tar.gz
Algorithm Hash digest
SHA256 dac7273133747224712a4b01c32e4809bac095cecf06be9511c14b84d3fcb77d
MD5 b4aaf7c218690d6a777eb4aa13938d75
BLAKE2b-256 011913245f5f8c0535a1ecb698733f53259babe464299efe7590735f6479092d

See more details on using hashes here.

File details

Details for the file pygments_shell_console-0.8.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pygments_shell_console-0.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 74820928ea61d97d9f8416bfc252e35e35a6c8d3824c19615e75b86d764af082
MD5 88b3009139ee4a413eaea3260932d0c8
BLAKE2b-256 a9013c7e45469c54a2f0538198383e47fb993ab3e0ae4e7103f3998dc4f6e06c

See more details on using hashes here.

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