Category:Pages with syntax highlighting errors

From SME Server
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 <tvar|syntaxhighlight><syntaxhighlight></> or <tvar|source><source></> tag with no <tvar|lang>lang</> attribute at all, because older versions of this extension supported the definition of "$wgSyntaxHighlightDefaultLang". These can typically either be replaced with <tvar|pre><pre></>, or <tvar|bash>lang="bash"</> or <tvar|text>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