Category:Pages with syntax highlighting errors
Appearance
This category signals pages that use <syntaxhighlight>...</syntaxhighlight>
(or <source>...</source>
, which is deprecated) without the mandatory lang="..."
attribute in the leading tag, or an incorrect/unsupported value for the programming language, or whose content parsing in that language detects syntaxic issues or rendering problems (including cases where the generated highlighted source code would be too large: large source code should not be included but stored in separate pages or linked from an external repository store where the code is maintained outside the wiki.
- For highlighting HTML or Wiki code, use
lang="html5"
- For highlighting CSS stylesheets, use
lang="css"
- For highlighting JSON data, use
lang="json"
- For highlighting Javascript source code, use
lang="javascript"
- For highlighting Lua source code, use
lang="lua"
- For highlighting PHP source code, use
lang="php"
- For highlighting shell script code, use
lang="shell"
orlang="bash"
- For unknown/unsupported languages, or generic text, or if the source code is too large, use
lang="text"
, or better use a<pre>...</pre>
instead, which is much faster and much less costly, or store the source code in an external source repository and provide a link to its maintenance page. - Alternatively, you can place this source code into a separate page or subpage, and set its "Content type" to "plain text" instead of "wikitext" (click "Information about this page ", available in Tools on the side bar). Then you can transclude that page or subpage as raw text, in the content of a customizable HTML element (that raw text will have no syntax highlighting).
This category currently contains no pages or media.