Documentation Code Highlighting¶
To apply code highlighting to a block of code, surround it with triple backticks (
```) and write the name of the language after the starting backticks, like this:
```python def foo(): pass ```
def foo(): pass
To apply code highlighting to inline code, surround the code with single backticks (
`) and add
#! after the initial backtick, followed by the language name:
Call the `#!python def foo()` function.
def foo() function.
The highlighter supports all languages supported by Pygments.
The Pygments project has a list of all supported languages. To use a language, refer to it through one of its short names.
Additionally, in this Spoofax documentation these Spoofax languages are supported:
Created: November 9, 2023