Pygments lexers for Git output and files.
Project description
Pygments lexers for Git output and files.
Installation
Use pip:
python -m pip install pygments-git
Python 3.7 to 3.11 supported.
Working on a Django project? Improve your skills with one of my books.
Usage
With the package installed, Pygments will autodiscover the below lexers.
When using Pygments directly, you can refer to them by name. Within Sphinx/docutils, you can refer to them in code-block directives:
.. code-block:: git-console
$ git log --oneline
82fbbd3 D'oh! Fix math proof
91e9879 Aye carumba! Grammar mistake
61c4c08 Cowabunga! Update bibliography
git-console
A lexer for displaying interactive shell sessions with Git. It calls out to BashLexer for highlighting commands on lines starting with a $ and DiffLexer for highlighting inline diffs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygments_git-1.0.0.tar.gz.
File metadata
- Download URL: pygments_git-1.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43997864f34e32c140225b820c27d436f98db1e5f33d76a4874aac95bc96d864
|
|
| MD5 |
4019c146ee430e6d665e2bb0b04bce47
|
|
| BLAKE2b-256 |
2c49c01649efef3740a4ad56cf40e3b65182cba444a8b203033908908a62ce8b
|
File details
Details for the file pygments_git-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pygments_git-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22775b2991ad03ef7bffba896433508b04d919acc055091890ed0bfd76ba00c3
|
|
| MD5 |
1edc34074150081a19a37964e8378e62
|
|
| BLAKE2b-256 |
4946e646fadf7f6ce960b940ae2ec9526b9520f7c6f1475aeeb988ef7634b005
|