wikEd does this, may be worth checking how, but it has an arcane bug regarding handling spaces which the developer says is not fixable (it replaces all utf8 spaces with the normal space or something I don't recall and couldn't find in my enwp contribs). Maybe try to make CodeEditor you linked support wiki markup...
code editor's php means to syntax highlight https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FSyntaxHighlight_GeSHi/69337ceac066099c1d72e1d774fd6a85b6a88cc6/geshi%2Fgeshi wikEd's js means (couldn't find an exact line where it does that) https://en.wikipedia.org/wiki/User:Cacycle/wikEd.js an extension which may have means to parse markup which I think is needed for highlighting it properly https://www.mediawiki.org/wiki/Parsoid On Sat, 1 Mar 2014, at 8:26, Dan Fisher wrote: > I'm sure this has been asked a number of times before. What is the easiest > thing that can be done so that when we click "edit" we see the Mediawiki > code highlighted in different colors and various other settings instead of > it being plain text? > This is not highlighting for a computer language. Its highlighting for the > default mediawiki code. For example: [[Hello|My link]] > Just an example: 'Hello' can be in red, and the other part can be in green > and brackets are bold and so on. > Is there an extension that can be installed? > > This one, is for computer languages, so its not what I'm looking for: > http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi > > Dan > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
