Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/details-algpseudocode.rst @ 164:a4317957148b
Move all lexers into a subpackage pygments_lexer_pseudocode2.lexers.
This is to prepare for a new subpackage with filters.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 08 May 2026 21:19:54 +0200 |
| parents | 11ce0903ff8b |
| children | 88f872c50aae |
comparison
equal
deleted
inserted
replaced
| 163:315cfe0a836f | 164:a4317957148b |
|---|---|
| 419 application. The very same lexer class can be used with different options: | 419 application. The very same lexer class can be used with different options: |
| 420 | 420 |
| 421 .. code-block:: python | 421 .. code-block:: python |
| 422 | 422 |
| 423 from functools import partial | 423 from functools import partial |
| 424 from pygments_lexer_pseudocode2.algpseudocode import AlgPseudocodeLexer | 424 from pygments_lexer_pseudocode2.lexers.algpseudocode import AlgPseudocodeLexer |
| 425 | 425 |
| 426 def setup(app): | 426 def setup(app): |
| 427 | 427 |
| 428 # | 428 # |
| 429 # Add a custom lexer: AlgPseudocodeLexer with custom init | 429 # Add a custom lexer: AlgPseudocodeLexer with custom init |
