pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev2011-10-15 02:55 pm
Entry tags:

JS-based S2 editor with syntax highlighting?

Can someone who groks JS better than I do check whether http://code.livejournal.org/trac/livejournal/changeset/20330/trunk and http://code.livejournal.org/trac/livejournal/changeset/20331/trunk is a browser-based syntax-highlighting S2 editor? (Or part of one, maybe?) I kinda want to submit a suggestion for something similar, if it is, but I can't do that without having some idea of what it does.
emceeaich: A close-up of a pair of cats-eye glasses (Default)

[personal profile] emceeaich 2011-10-15 06:47 pm (UTC)(link)
Looking at @20330, and this is a cold read of the change sets:

s2edit.js changes appear to be for:

* creating some preferences storage using JQuery's wrapper for persistent storage.
* toggling a view between editing and display
* and setting up the actual editor through requiring some syntax files (those are the files added in the @20331 changeset)

s2sense.js looks to be trying to attempt to do some syntax matching in the current line of the buffer based on something that looks like the last character pressed?