Category:Pages with syntax highlighting errors

From SME Server
Revision as of 22:24, 15 March 2020 by Unnilennium (talk | contribs) (Created page with "This is a list of pages with Syntax highlighting error The extension adds pages that have a bad lang attribute in a <source> or <syntaxhighlight> tag to a tracking category....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is a list of pages with Syntax highlighting error

The extension adds pages that have a bad lang attribute in a <source> or <syntaxhighlight> tag to a tracking category. The message key MediaWiki:syntaxhighlight-error-category determines the category name; on this wiki it is Category:Pages with syntax highlighting errors.

The most common error that leads to pages being tagged with this category is a <syntaxhighlight> or <source> tag with no lang attribute at all, because older versions of this extension supported the definition of "$wgSyntaxHighlightDefaultLang". These can typically either be replaced with

, or lang="bash" or lang="text" can be added to the tag.

The category may also be added, and the content will not be highlighted, if there are more than 1000 lines or more than 100 kB text.

see https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Syntax_highlighting_error_category