Open main menu

User:SPage (WMF)/SyntaxHighlight test

< User:SPage (WMF)

A bad lang attribute in <source> tag used to display an ugly error box. Now it just displays preformatted text with no highlighting. Good for readers, bad for editors. And there's no link to available languages while editing wikitext.

These bad <source> tags will put this page in Category:Pages with syntax highlighting errors, but when you preview they don't warn.

bad value for lang attribute
wrong tag attribute 'code'
no lang attribute