Page MenuHomePhabricator

Extension req: embed Mozilla Skywriter editor for CSS, JS pages with syntax highlighting
Closed, ResolvedPublic

Description

Would be nice for power users to be able to use a code editor that does syntax hightlighting etc for JavaScript and CSS pages. An extension that uses the Mozilla Skywriter (formerly Bespin) editor widget as a drop-in replacement on those pages could be quite handy indeed.


Version: unspecified
Severity: enhancement
URL: https://mozillalabs.com/skywriter/

Details

Reference
bz26343

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:23 PM
bzimport set Reference to bz26343.
bzimport added a subscriber: Unknown Object (MLST).

ernstke+mwbugzilla wrote:

(In reply to comment #0)

Would be nice for power users to be able to use a code editor that does syntax
hightlighting etc for JavaScript and CSS pages. An extension that uses the
Mozilla Skywriter (formerly Bespin) editor widget as a drop-in replacement on
those pages could be quite handy indeed.

Furthermore, I think a Skywriter plugin FOR WIKITEXT would be fantastic. Some simple color cues would help immensely when you're dealing with a complicated article with templates calling templates, embedded HTML (a no-no, I know, but it happens), complicated nested tables, and so forth.

I haven't looked to see what's out there recently (within the last year), but the closest I was ever able to manage in years past was jEdit with the mwjed plugin. And as I recall, "some assembly" was required. Skywriter seems poised to make syntax highlighting of wikitext articles as simple as installing a MediaWiki extension, if someone could be bothered to write the "glue" to make it work.

So we've done this for Lua modules, JS, and CSS pages with CodeEditor extension (using ACE editor which supercedes the old SkyWriter).

For highlighting in wikitext editing, if interested in current state please add any notes on bug 11627.