Git Product home page Git Product logo

meteor-reactive-ace's Introduction

meteor-reactive-ace

##Quick Start

  1. Install meteorite npm install -g meteorite
  2. Clone this repo git clone git://github.com/mad-eye/meteor-reactive-ace.git; cd meteor-reactive-ace
  3. Update submodules git submodule update --init ace-builds
  4. Check out the helloAce example
  5. cd examples/helloAce
  6. mrt

##Including in your project

###Setup

  1. Add reactive-ace to your smart.json file
  2. 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.
  3. Create an editor object by calling new ReactiveAce()
  4. 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"

Full list of themes and modes

##Turning on the javascript abstract syntax tree (powered by esprima)

  1. Turn on abstract syntax tree parsing with editor.parseEnabled = true
  2. View it with editor.parsedBody
  3. If you have an error in your javascript editor.parsedError will be populated.

meteor-reactive-ace's People

Contributors

jagill avatar rissem avatar mad-eye avatar rotev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.