Topic on Extension talk:SyntaxHighlight

How to add a custom lang named as 'ipl' in SyntaxHighlight_GeSHi

4
Anu8791 (talkcontribs)

Hi,

In earlier version "1.0.8.12" we are having with /geshi and we able to add custom code for a new lang. But in this latest version 2.0, I don't see how to add the custom code for syntexhighlight.

Could anyone pls help in regards?

PerfektesChaos (talkcontribs)

Please clarify your desire.

  • Do you want to add a synoymous code for an existing scheme?
  • Do you want to establish a new language syntax?

At least for the second you are free to create a new formal language upstream. MediaWiki will import that after half a year, or one year, or later. The same goes for alternative identifiers of existing definitions.

Anu8791 (talkcontribs)

Yes we need to have a new language 'ipl' syntax highlighting in the SyntaxHighlight_GeSHi extension for MediaWiki 1.30.0

Could you let know that how could we archive that ?

PerfektesChaos (talkcontribs)
  • GeSHi has been an external vendor, but for continuous support it has been exchanged by pygments some years ago.
  • Visit upstream: http://pygments.org/docs/lexerdevelopment/
  • Feed the world with a new language definition.
  • Wait approximately half a year.
  • MediaWiki will swallow the upstream news including yours and update the extension.
  • Then you need to upgrade at least your extension, or perhaps the entire MediaWiki installation (seems to be rather old).
Reply to "How to add a custom lang named as 'ipl' in SyntaxHighlight_GeSHi"