This release is a pre-release and may not be stable for production use.
SimStm Pygments Lexer Plugin
A Pygments plugin that provides syntax highlighting support for the SimStm language.
SimStm is a small, stack-based language used for defining simulation control flows.
This plugin adds a custom lexer so that .stm files can be syntax-highlighted in Pygments-supported tools (e.g., Sphinx, code formatters, converters, etc.).
General
- Project Name: SimStm Pygments Lexer
- Language Supported: SimStm
- Lexer Type: Pygments plugin
- License: MIT
This project is useful for:
- Rendering
.stmfiles with syntax highlighting in HTML, LaTeX, or terminal output using Pygments - Integrating SimStm support in Sphinx documentation
- Editor plugin integrations that use Pygments lexers
Installation (for users)
You can install the lexer directly from PyPI:
pip install simstm-pygments-lexer
Usage with pygmentize
pygmentize -f html -o output.html yourfile.stm
Or with style options:
pygmentize -f html -O full,style=monokai -o out.html yourfile.stm
Usage in Sphinx
To enable SimStm highlighting in Sphinx:
- Add
simstm-pygments-lexerto your project'srequirements.txt - Use
.. code-block:: simstmor.. highlight:: simstmin your.rstor.mddocs
Development Setup
Clone the project
git clone https://github.com/YOUR_USERNAME/simstm-pygments-lexer.git
cd simstm-pygments-lexer
Set up environment with Hatch
Make sure Hatch is installed:
pip install hatch
Then create the virtual environment:
hatch env create
This will install
pytestand other dev dependencies.
Running Tests
There are two test commands:
-
Run tests normally:
hatch run test
-
Generate reference files:
hatch run gen
Tests compare lexer output to expected golden files under tests/examplefiles.
Build and Publish
To build the distribution:
hatch build
To publish to PyPI.org:
hatch publish
Contributing
Feel free to open pull requests for:
- Language updates or extensions
- Additional tests
- Bug fixes
Metadata
Release files for pygments-plugin-simstm 0.0.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pygments_plugin_simstm-0.0.0a3.tar.gz | 9.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygments_plugin_simstm-0.0.0a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.8 kB
Release files / pygments_plugin_simstm-0.0.0a3.tar.gz
| Download URL | pygments_plugin_simstm-0.0.0a3.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c67433f5a53034b80823a7225a8cdd1c337bd9ecb29d2469a8dac23d998905ae
|
|
BLAKE2b-256 checksum How to use checksums |
2befeefc39a9ea637b984406a582a42e7420bd0a9d2a284a2be1461e740c9ba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / pygments_plugin_simstm-0.0.0a3-py3-none-any.whl
| Download URL | pygments_plugin_simstm-0.0.0a3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f75c13befe3fd0631d445692636c887b945feee68bff56bca4c2f8cd0cff334b
|
|
BLAKE2b-256 checksum How to use checksums |
26322623bf226111519bb9627ef074158e3a0ec80c669b8bfaca94f4cc58cfef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for pygments-plugin-simstm 0.0.0a3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.