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
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
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Krinkle | T105889 SyntaxHighlight lost support for 30 languages (regression) by switching from GeSHi to Pygments | |||
Resolved | TheDJ | T114630 "cpp-qt" entry missing in SyntaxHighlight_GeSHi.langs.php |
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
I'm closing this. if anyone really wants full cpp-qt support, please open another ticket upstream, and a new one in phabricator.