On 4/1/2016 2:12 PM, krsnaa wrote:
> Mike, I know it's been a couple of months to your original post. Just
> checking to see if you had found an answer. I just started on a project
> that extensively uses hierarchical XML files that are 2-3k lines long
> and using a text editor for it is an exercise in frustration. Blockly
> would absolutely be PERFECT for this application like you mention above.
> Wanted to check on any progress to see if I could stand on the shoulder
> of giants vs reinventing the wheel :
Only dwarves here.
I got far enough for a proof of concept, which is to say I constructed a
couple XML templates and figured out how to convert the Blockly objects
into real XML. I'll attach the three files that are the proof of
concept; they're based on the files in the Blockley demos/code dir and
blocks dir, and I store them in a subdirectory of the demos/ dir that I
called LanguageSchema (because my application has to do with language).
index.html: You can see what I did to the file if you do a diff between
my index.html file and the one in demos/code.
LanguageSchema.js: based off of blocks/logic.js, loaded by index.html.
code.js: based off of demos/code/code.js (in fact, I haven't removed all
the stuff that's for building Javascript programs with Blockly)
Also in my LanguageSchema dir is a file style.css, but that's unmodified
from the file of the same name in the Blockly code dir.
BTW, there's s.t. very odd: if I open a browser on
LanguageSchema/index.html and click on the LanguageData object on the
left, it displays my LanguageData template in the editing area. In
principle, I should then be able to click on the "XML" tab and produce
an XML output. But unless I actually mouse the template and move it
slightly, this doesn't work. I'm not sure why.