Page MenuHomePhabricator

"cpp-qt" entry missing in SyntaxHighlight_GeSHi.langs.php
Closed, ResolvedPublic

Description

Hi,

you can't use C++ with Qt because the language isn't added to $wgGeSHiSupportedLanguages array in "SyntaxHighlight_GeSHi.langs.php".

Fix: add "cpp-qt", to the array and syntax highlighting with C++ and Qt will work again.

Regards,
Thomas

Event Timeline

Tomikais raised the priority of this task from to Needs Triage.
Tomikais updated the task description. (Show Details)
Tomikais added a project: SyntaxHighlight.
Tomikais subscribed.
jayvdb subscribed.

cpp-qt is in https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSyntaxHighlight_GeSHi/master/SyntaxHighlight_GeSHi.compat.php , falling back to 'cpp' , so the lang 'cpp-qt' should 'work'

However the GeSHi lang 'cpp-qt' had special support many Qt names, and the Pygments library doesnt know about those Qt names so they will not be highlighted differently.

To add those Qt names to Pygments, please report this bug upstream at https://bitbucket.org/birkenfeld/pygments-main/issues/new

TheDJ claimed this task.
TheDJ subscribed.

I'm closing this. if anyone really wants full cpp-qt support, please open another ticket upstream, and a new one in phabricator.