Pygments lexer for Epsilon languages suite.
Project description
Epsilon Plugin for Pygments
Pygments lexer support for Epsilon languages (ready to use with MkDocs Material)
Installation
git clone https://github.com/iNafey/pygments-epsilon.git
cd pygments-epsilon
sudo python setup.py install
Could also replace the last line for (sudo python setup.py develop) if you will make changes to the code.
If you want to install it from PyPI:
pip install pygments-epsilon
Usage
To use the Epsilon lexers, you need to have Pygments installed (so you can use the pygmentize command). Then, you can perform syntax highlighting using the following command:
pygmentize -l <LexerAlias> -x <RelativePathToFile>
Where LexerAlias is the alias of the lexer you want to use (e.g. emf for Emfatic) and RelativePathToFile is the relative path to the file you want to highlight.
For example, if you want to highlight the file test.egl using the EGL lexer, you would use:
pygmentize -l etl -x test_scripts/test.etl
MkDocs Material Support
If you want to use the lexers with MkDocs Material, simply call the LexerAlias in the code blocks of your Markdown files. For example, if you want to highlight an ETL code block using the ETL lexer, you would use:
``` etl
//MT definition containing rules
```
Color Customization
You can select from various pygments styles already available for highlighting within the terminal:
pygmentize -O <StyleName> -l <LexerAlias> -x <RelativePathToFile>
Where StyleName is the name of the style you want to use (e.g. monokai). The default style is default.
To change the style for MkDocs Material, you will need to find the token types of the keywords you want to highlight (Inspect Element via your browser). Then, follow the instructions here to add the custom style to your documentation site.
Available Epsilon lexers
- ETL:
etl - EOL:
eol - Emfatic:
emf
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-epsilon-1.0.tar.gz.
File metadata
- Download URL: pygments-epsilon-1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eefaf0e0996eeb79a56cb0b9a32e56f154bed8554e4ff4f36e1ae53cca9b98b6
|
|
| MD5 |
fb8df9f2d1542c64da74a514dec8b50e
|
|
| BLAKE2b-256 |
21d67b5260e08275ff0afb0eeed60a81d8f77f9b3c16b33e8816b7b9617bf388
|
File details
Details for the file pygments_epsilon-1.0-py3-none-any.whl.
File metadata
- Download URL: pygments_epsilon-1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebcc4840ab2ae11fff795c684db6e80be35f4337b00907b632ed3d2149e1eea6
|
|
| MD5 |
9c89ec77c552d890158abf7e9f2faeec
|
|
| BLAKE2b-256 |
82985e06d7e7c05bd8b5265fedf4d729ddf8ce522d765807e22f07a5176d046f
|