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

Uploaded Source

Built Distribution

pygments_shell_console-0.8.2-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.2.tar.gz.

File metadata

File hashes

Hashes for pygments_shell_console-0.8.2.tar.gz
Algorithm Hash digest
SHA256 124d3c292005d285120494cbaf63de577cffab1da0904b581cc84b6e463a11d6
MD5 c96391bd2afd536e084a8c991c849e60
BLAKE2b-256 14a5a1da7551c0ce3cfa0b764d9a71e883fc8931c90c645ca7bad12d98978c37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygments_shell_console-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0b6b3620bc8bfcea73cbc4c5ee616d7fd2d4f430b0fac8093928d8a22a513ac4
MD5 fd14999ec16dc52d5bd804f3e3bdc39b
BLAKE2b-256 eb7ac97dc7a958e589d42c00c2970818f918707435b5cdcd64f6bcd39c9cce40

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