HomePhabricator

Add a tracking category on pages that contain invalid <syntaxhighlight>…

Description

Add a tracking category on pages that contain invalid <syntaxhighlight> attributes

Do this by having SyntaxHighlight_GeSHi::highlight() return a Status object
rather than a plain string, and by making it the highlight method's job to look
up a lexer for a language. The actual warning text is not outputted anywhere
yet; deferring that for a follow-up patch.

Bug: T103586
Change-Id: Id839f925a56ab09a8423958327b9aefd7207ef37

Details