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.
no subject
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?