pygments-step¶
Pygments lexers for EXPRESS (ISO 10303-11) and STEP Part 21 (ISO 10303-21).
Install¶
The only runtime dependency is Pygments>=2.14. Python 3.9+ is supported.
What it does¶
Installing this package registers two lexers with Pygments, so every tool that
renders code through Pygments — MkDocs, Sphinx, pygmentize, Rich, Jupyter —
can highlight EXPRESS and STEP Part 21 without any further configuration.
| Lexer | Standard | Code fence | File types |
|---|---|---|---|
ExpressLexer |
EXPRESS, ISO 10303-11 | ```express |
*.exp |
StepFileLexer |
Part 21 exchange file, ISO 10303-21 | ```step21 |
*.p21, *.stp, *.step |
Both lexers are schema-agnostic: they lex the languages, not any single application protocol, so they work equally well for IFC, AP203, AP214 or any other STEP-based schema without carrying a schema-specific keyword table.
Try it¶
See the live demo for EXPRESS and STEP Part 21 snippets that are highlighted by this exact package, the quickstart for Python and command-line usage, or build from source to produce and verify the wheel yourself.
MIT License © 2026 AECVerge