Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/lexer-algpseudocode.rst @ 274:77cfab93a60e
FIX: Example when escaping string delimiters
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 20 May 2026 09:51:29 +0200 |
| parents | 9790553d7225 |
| children | 397ed930a5ba |
comparison
equal
deleted
inserted
replaced
| 273:69a5868b30fd | 274:77cfab93a60e |
|---|---|
| 190 String prefixes ``u`` and ``b`` are supported---prefixes | 190 String prefixes ``u`` and ``b`` are supported---prefixes |
| 191 ``r``, ``f`` and ``t`` are not supported. | 191 ``r``, ``f`` and ``t`` are not supported. |
| 192 | 192 |
| 193 To have non-string-delimiting single- and double-quotes in the output you | 193 To have non-string-delimiting single- and double-quotes in the output you |
| 194 have to escape them using ``\'`` or ``\"``. | 194 have to escape them using ``\'`` or ``\"``. |
| 195 This must be used to typeset something as :algpseudocode:`f\\'(x) = 0`. | 195 This must be used to typeset something as :algpseudocode:`f\'(x) = 0`. |
| 196 | 196 |
| 197 .. code-block:: algpseudocode | 197 .. code-block:: algpseudocode |
| 198 | 198 |
| 199 0 1234567890 0xdead 0b100001 0o720 2.7 2.7e-54 | 199 0 1234567890 0xdead 0b100001 0o720 2.7 2.7e-54 |
| 200 | 200 |
