pygments-lexer-pseudocode-i18n
Reusable Pygments highlighting for the multilingual educational pseudocode language defined by pseudocode-i18n.
Version 0.2.0 is designed for:
pseudocode-i18n >= 0.2.1, < 0.3
The lexer intentionally maps pseudocode concepts onto Python-like Pygments token families, while consuming the shared language definitions instead of maintaining a duplicate grammar.
Installation
python -m pip install pygments-lexer-pseudocode-i18n
Aliases
Generic:
pseudocode
pseudo
Language-specific:
pseudocode-fr / pseudo-fr
pseudocode-en / pseudo-en
pseudocode-es / pseudo-es
pseudocode-de / pseudo-de
pseudocode-it / pseudo-it
pseudocode-pt / pseudo-pt
Example
from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments_lexer_pseudocode_i18n import PseudocodeFrenchLexer
source = '''\
Pour note Dans notes:
Si note >= 10:
Afficher note
'''
html = highlight(source, PseudocodeFrenchLexer(), HtmlFormatter())
Shared configuration
The generic lexer can use the same pseudocode.config.yml project configuration as pseudocode-i18n:
language: fr
languages:
fr:
keywords:
display:
add:
- Montrer
Language-specific lexers keep their explicit language while still consuming that language's project overrides.
Development
yarn setup
yarn bfc
yarn bfc synchronizes the version, lints, tests, regenerates/checks the documentation, builds MkDocs strictly, and builds the Python package.
Release workflow
Normal publication:
push "message"
updates main and GitLab Pages only.
Release publication:
push "release 0.2.0" --release
also pushes the version tag. The tag pipeline verifies the tag/version match, publishes PyPI, and creates an actual GitLab Release.
Documentation policy
Documentation is part of every code/configuration/workflow change. The documentation is structured under site/ into Installation, Configuration, exhaustive Usage (including one generated page per language), Development, and Reference sections.
License
GNU General Public License v3 or later (GPL-3.0-or-later).
Release files for pygments-lexer-pseudocode-i18n 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygments_lexer_pseudocode_i18n-0.2.0.tar.gz | 38.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygments_lexer_pseudocode_i18n-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.2 kB
Release files / pygments_lexer_pseudocode_i18n-0.2.0.tar.gz
| Download URL | pygments_lexer_pseudocode_i18n-0.2.0.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b835c550b0b1cfdfe1a7d564a57dbee07f792cfcfc77624abf44a72439e6f57
|
|
BLAKE2b-256 checksum How to use checksums |
3a11a7d37999da45744dc052dc8c958edddd3143eb77a5ea9ef429211b760574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / pygments_lexer_pseudocode_i18n-0.2.0-py3-none-any.whl
| Download URL | pygments_lexer_pseudocode_i18n-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8295572129d62ce2fc8523de803f3f1ff3625ebf7cf1a3c3d30e84890b33d46f
|
|
BLAKE2b-256 checksum How to use checksums |
4460b5bdce256886527da1e180ea9f99f6274adecf297d612f2e6ee26daa2318
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|