Page MenuHomePhabricator

Add "wikitext" as language in Pygments
Open, LowestPublic

Assigned To
Authored By
Mar 2 2011, 8:32 PM
"Like" token, awarded by Ailbeve."Like" token, awarded by SerDIDG."Like" token, awarded by Kghbln."Like" token, awarded by IKhitron."Like" token, awarded by Miguu."Like" token, awarded by He7d3r."Like" token, awarded by Fae.


Add "wikitext" as a language lexer in Pygments, as used in Extension:SyntaxHighlight

See attachment below for (incomplete) lang='mediawiki" patch.

Upstream Pygments feature request:
Plus older notes at the GeSHi feature requests: ("wikitext") and (MediaWiki). (but nothing in GeSHi's newer GitHub issues).

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:31 PM
bzimport set Reference to bz27828.

As an aside, this is somewhat of an upstream issue, since we just make the bridge that connects GESHI (the syntax highlighter) to mediawiki, we don't actually make the part that does the syntax highlighting. (With that said, if anyone's going to do this, it'd probably be us since we're the only one's who'd need a wikitext syntax highlighter)

intnumerix wrote:

Mediawiki syntax file (draft)

A small test for a mediawiki syntax file.
Some colors are ugly...


intnumerix wrote:

I made a small test (see attachment). It is quite difficult to integrate html tags in mediawiki syntax ... geshi script delimiters cannot work here.

Reedy added a comment.Mar 3 2011, 4:30 PM

Yeah, there's no way for us to put it in..

If you're wanting to do this, the authors are quite accomodating

You will need to get it fully complete I imagine...

But easier to drop a request on their bugtracker. Then when it's added, and in a tagged release, we can update the version this extension references :)

+upstream bug report url

[Removing RESOLVED LATER as discussed in . Reopening and setting priority to "Lowest". For future reference, please use either RESOLVED WONTFIX (for issues that will not be fixed), or simply set lowest priority. Thanks a lot!]

Spage updated the task description. (Show Details)May 26 2015, 10:40 PM
Spage added a project: Patch-For-Review.
Spage set Security to None.

Change 213964 had a related patch set uploaded (by Spage):
[WIP] Add lang="mediawiki" syntax highlighting

Change 213964 abandoned by Jforrester:
[WIP] Add lang="mediawiki" syntax highlighting

This now needs to be made upstream in Pygments.

jayvdb added a subscriber: jayvdb.Jun 25 2015, 9:21 PM
Krinkle moved this task from Backlog to Accepted on the SyntaxHighlight board.Jun 25 2015, 10:50 PM
TheDJ updated the task description. (Show Details)Jun 26 2015, 6:20 AM
jayvdb moved this task from Backlog to Reported Upstream on the Upstream board.Jul 21 2015, 2:51 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 21 2015, 2:51 AM
This comment was removed by Spage.
Spage updated the task description. (Show Details)Oct 29 2015, 10:41 PM
Fae awarded a token.Jul 3 2016, 10:45 AM
Fae added a subscriber: Fae.
He7d3r added a subscriber: He7d3r.Nov 19 2017, 5:08 PM
Miguu awarded a token.Jan 9 2018, 2:00 AM
Miguu added a subscriber: Miguu.
Gustmd7410 removed a subscriber: Gustmd7410.
Xover added a subscriber: Xover.Sep 8 2018, 6:51 AM
Quiddity renamed this task from Add "wikitext" as language to Add "wikitext" as language in Pygments.Oct 19 2018, 4:35 PM
Quiddity updated the task description. (Show Details)
Quiddity removed a subscriber: Spage.
Quiddity added subscribers: Seb35, Quiddity.

@Seb35 thank you for your note on the upstream issue. Is there anything specific you need help on, to move this forward?

IKhitron added a subscriber: IKhitron.
Kghbln added a subscriber: Kghbln.
Ake updated the task description. (Show Details)Jan 1 2020, 6:05 AM
SerDIDG added a subscriber: SerDIDG.
Ailbeve added a subscriber: Ailbeve.

What was blocking this? Was there an upstream issue?

@ShakespeareFan00 Please read the task description first which does include an upstream issue link. Thanks.

DannyS712 moved this task from Accepted to Upstream on the SyntaxHighlight board.Apr 16 2020, 5:06 PM
bd808 added a subscriber: bd808.May 20 2020, 9:05 PM