On 14.01.2013 00:16, MZMcBride wrote:
Looks neat. :-) But this is mostly already in
progress at
<https://www.mediawiki.org/wiki/Extension:CodeEditor>. This extension is
live on Wikimedia wikis already (including Meta-Wiki and
MediaWiki.org),
but it has some outstanding issues and could definitely use some love
before more widespread deployment.
Note that JS and CSS pages now (in 1.21) have their own page content model.
Perhaps it would make sens to hook into, or derive from,
JavaScriptContentHandler resp CSSContentHandler and provide a custom edit action
via the getActionOverrides() method.
On a related note, I have two patches pending review (needs some fixing) that
implement syntax highlighting for JS and CSS in a more generic way. With this in
place, it would be trivial to provide syntax highlighting also for e.g. Lua.
Have a look at <https://gerrit.wikimedia.org/r/#/c/28199/> and
<https://gerrit.wikimedia.org/r/#/c/28201/>.
-- daniel