General Actions:
| Used to highlight code |
| Type | JAR |
| Developed by | |
| License | GNU Lesser General Public License 2.1 |
| Bundled With | XWiki Enterprise, XWiki Enterprise Manager |
Table of contents
See http://pygments.org/languages/ for the list of all supported languages.
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| language | yes | a string | the macro tries to determine the syntax | the language identifier of the provided code snippet. If no language identifier is specified then the macro will try to determine the syntax. To avoid highlight you can use "none" language identifier. |
This macro also support all Box Macro parameters.
It's possible to set some configuration for this macro in the xwiki.properties file:
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| rendering.macro.code.pygments.style (since 2.4M1) | yes | a string | "default" | the name of the Pygments style to use. See http://pygments.org/docs/styles/ for more about styles. |
Anyone can add a new language support by: