Looking for a nice web based code edit component. I wanted XQuery and Sparql in addition to the usual suspects. The choice seems to be between
Codemirror and
Ace.
Codemirror supports both
Sparql and
XQuery out of the box.
Ace has very nice
XQuery support initially developed for the
eXide feature of
eXist by
Wolfgang Meier and then enhanced, and pushed back to the main Ace project, by
William Candillon. Ace currently has no official Sparql mode, but I spotted
Callimachus has the
code for a slightly earlier Ace release.
For me the deciding factor is that ACE is built with
AMD support, whereas Codemirror is not. There is a project to convert/wrap Codemirror for use with
Dojo, which means using AMD, but it looks like a lot of work.
Related projects to watch:
Treehugger and
Dojo Widget for Ace