comparison docs/filters.rst @ 206:4e4c83a87387

Change the error token filter examples: use a non-existing command
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 13 May 2026 14:55:30 +0200
parents 8825282f6900
children e03e8cfdcece
comparison
equal deleted inserted replaced
205:c80b430fdc0f 206:4e4c83a87387
19 The AlgPseudocode lexer yields an error token for the following code block. 19 The AlgPseudocode lexer yields an error token for the following code block.
20 `Sphinx`_ therefore suppresses highlighting completely: 20 `Sphinx`_ therefore suppresses highlighting completely:
21 21
22 .. code-block:: none 22 .. code-block:: none
23 23
24 \EXPR{TEST} 24 \nonexisting{TEST}
25 25
26 With a custom AlgPseudocode lexer that has ``prohibit_raiseonerror_filter`` 26 With a custom AlgPseudocode lexer that has ``prohibit_raiseonerror_filter``
27 activated the output in `Sphinx`_ is as: 27 activated the output in `Sphinx`_ is as:
28 28
29 .. code-block:: no-raiseonerror-algpseudocode 29 .. code-block:: no-raiseonerror-algpseudocode
30 30
31 \EXPR{TEST} 31 \nonexisting{TEST}
32 32
33 33
34 With the "errortogenericerror" filter the very same block is highlighted 34 With the "errortogenericerror" filter the very same block is highlighted
35 as: 35 as:
36 36
37 .. code-block:: genericerror-algpseudocode 37 .. code-block:: genericerror-algpseudocode
38 38
39 \EXPR{TEST} 39 \nonexisting{TEST}
40 40
41 41
42 ErrorToGenericErrorTokenFilter 42 ErrorToGenericErrorTokenFilter
43 ============================== 43 ==============================
44 44