Difference between revisions of "Category:Pages with syntax highlighting errors"
Jump to navigation
Jump to search
m |
m |
||
| Line 5: | Line 5: | ||
Super helpful, I know. Very Wiki of them! | Super helpful, I know. Very Wiki of them! | ||
| − | * All syntaxhighlight tags need a [https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi/blob/master/SyntaxHighlight.lexers.php lang property] set, if unsure use | + | * All syntaxhighlight tags need a [https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi/blob/master/SyntaxHighlight.lexers.php lang property] set, if unsure use text |
* The markup/code should be valid, don't use comments in a json block, don't use console output in a lua block etc. | * The markup/code should be valid, don't use comments in a json block, don't use console output in a lua block etc. | ||
| − | * You can use the inline property for inline code | + | * You can use the inline property for inline code and [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight more] |
| + | Example: | ||
| + | <pre> | ||
| + | Format code inline <syntaxhighlight lang="lua" inline>local a = 1</syntaxhighlight> or | ||
| + | <syntaxhighlight lang="lua"> | ||
| + | -- use code blocks | ||
| + | local a = 1 | ||
| + | </syntaxhighlight> | ||
| + | </pre> | ||
| + | Format code inline <syntaxhighlight lang="lua" inline>local a = 1</syntaxhighlight> or | ||
| + | <syntaxhighlight lang="lua"> | ||
| + | -- use code blocks | ||
| + | local a = 1 | ||
| + | </syntaxhighlight> | ||
Revision as of 10:28, 16 February 2026
This page lists wiki pages that use Syntax Highlighting extension - but for whatever reason the extension refuses to highlight given texts within the pages listed.
Notice: This page is generated by the extension! It doesn't give any indication WHY the pages are listed, just that they have a problem...
Super helpful, I know. Very Wiki of them!
- All syntaxhighlight tags need a lang property set, if unsure use text
- The markup/code should be valid, don't use comments in a json block, don't use console output in a lua block etc.
- You can use the inline property for inline code and more
Example:
Format code inline <syntaxhighlight lang="lua" inline>local a = 1</syntaxhighlight> or <syntaxhighlight lang="lua"> -- use code blocks local a = 1 </syntaxhighlight>
Format code inline local a = 1 or
-- use code blocks
local a = 1
Pages in category "Pages with syntax highlighting errors"
The following 3 pages are in this category, out of 3 total.