Category:Pages with syntax highlighting errors

From Wikitech
Jump to navigation Jump to search

mw:Extension:SyntaxHighlight adds pages that have a missing or bad lang attribute in a <source> or <syntaxhighlight> tag to this tracking category.

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. These can typically be replaced with <pre> or lang="bash" can be added.

The second most common error is the use of lang="sh" or lang="shell" which are unsupported. These can typically be replaced with lang="bash" or lang="shell-session".

Alternatively, use lang="text" for plaintext.