BlockMirror
BlockMirror copied to clipboard
Where to start without using the full BlockMirror class
I am considering using BlockMirror in our project but we already have a full layout with Blockly and CodeMirror in it. So we don't need the BlockMirror div. Whta I am looking for is 'just' the function getBlocklyXMLFromPython(python_code) which accepts a full python scripts, and outputs the Blockly XML. Is there something similar in this code so I can only use that part?
Glad to hear you are interested!
I believe the main file you need is text_to_blocks.js
along with almost everything in src/ast/*.js
and src/skulpt/*.js
. You may want to trim things down a little, or alternatively you might just consider having everything available and then only importing the relevant parts.