Page MenuHomePhabricator

Reflect formal language in element class
Closed, ResolvedPublic

Description

<syntaxhighlight lang="haskell" class="myclass">

produces a wrapping element:

<div class="myclass mw-highlight mw-content-ltr" dir="ltr">

A further class

mw-highlight-lang-haskell

should be appended if lang is registered.

Code examples in different languages shall be recognized by higher level configuration.

Event Timeline

Change 572432 had a related patch set uploaded (by TheDJ; owner: TheDJ):
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Syntaxhighlight: Classnames for the highlighted language

https://gerrit.wikimedia.org/r/572432

Change 572432 merged by jenkins-bot:
[mediawiki/extensions/SyntaxHighlight_GeSHi@master] Syntaxhighlight: Classnames for the highlighted language

https://gerrit.wikimedia.org/r/572432