Page MenuHomePhabricator

CodeMirror should perform syntax highlighting inside <gallery></gallery> tags
Closed, ResolvedPublic

Description

Currently, no syntax highlighting is performed inside gallery tags. All text is default black. It should be highlighted instead.

image.png (768×598 px, 135 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
ldelench_wmf subscribed.

Untagging CommTech, but we are happy to do code review if needed.

Bhsd subscribed.

I am adding a parent task because the syntax inside a gallery tag is essentially one file link per line without double brackets.

Change #1189904 had a related patch set uploaded (by Bhsd; author: Bhsd):

[mediawiki/extensions/CodeMirror@master] CodeMirrorMediaWiki: highlight inside <gallery>

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

MusikAnimal changed the task status from Open to In Progress.Sep 19 2025, 8:16 PM

Change #1189904 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] CodeMirrorMediaWiki: highlight inside <gallery>

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

Bhsd moved this task from Feature requests to Done on the MediaWiki-extensions-CodeMirror board.