##Quick Start
- Install meteorite
npm install -g meteorite
- Clone this repo
git clone git://github.com/mad-eye/meteor-reactive-ace.git; cd meteor-reactive-ace
- Update submodules
git submodule update --init ace-builds
- Check out the helloAce example
cd examples/helloAce
mrt
##Including in your project
###Setup
- Add reactive-ace to your smart.json file
- Create a div element with an id where you will attach the editor. Wrap it inside of a
{{constant}}
block so that it is not rerendered. - Create an editor object by calling
new ReactiveAce()
- Attach the editor to the div by calling
editorObject.attach(divElementId)
##Enabling syntax modes and themes
Assuming your editor is a variabled named editor
, try
editor.theme = "monokai"
editor.syntaxMode = "javascript"
##Turning on the javascript abstract syntax tree (powered by esprima)
- Turn on abstract syntax tree parsing with
editor.parseEnabled = true
- View it with
editor.parsedBody
- If you have an error in your javascript
editor.parsedError
will be populated.