Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/details-algpseudocode.rst @ 145:c4f6f5e771b0
Also define the :algpseudocode: role globally in the package documentation.
More external links.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 07 May 2026 12:30:25 +0200 |
| parents | b616f9645e37 |
| children | b4688f6cc7b1 |
comparison
equal
deleted
inserted
replaced
| 144:b616f9645e37 | 145:c4f6f5e771b0 |
|---|---|
| 2 | 2 |
| 3 | 3 |
| 4 *************** | 4 *************** |
| 5 AlgPseudocode | 5 AlgPseudocode |
| 6 *************** | 6 *************** |
| 7 | |
| 8 .. role:: algpseudocode(code) | |
| 9 :language: algpseudocode | |
| 10 | |
| 11 | 7 |
| 12 Lexer Options | 8 Lexer Options |
| 13 ============= | 9 ============= |
| 14 | 10 |
| 15 .. describe:: no_end | 11 .. describe:: no_end |
| 54 | 50 |
| 55 | 51 |
| 56 Literals | 52 Literals |
| 57 ======== | 53 ======== |
| 58 | 54 |
| 59 Strings and numbers as in `Python <https://www.python.org>`_. | 55 Strings and numbers as in `Python`_. |
| 60 | 56 |
| 61 To yield non-string-delimiting single- and double-quotes you have to escape them | 57 To yield non-string-delimiting single- and double-quotes you have to escape them |
| 62 using ``\'`` or ``\"``. This must be used to typeset something as | 58 using ``\'`` or ``\"``. This must be used to typeset something as |
| 63 :algpseudocode:`f\\'(x) = 0`. | 59 :algpseudocode:`f\\'(x) = 0`. |
| 64 | 60 |
