An open API service indexing awesome lists of open source software.

https://github.com/a8m/angular-code-mirror

2 way binding codemirror for AngularJS based on google-prettify
https://github.com/a8m/angular-code-mirror

Last synced: about 1 year ago
JSON representation

2 way binding codemirror for AngularJS based on google-prettify

Awesome Lists containing this project

README

          

#angular-code-mirror   [![Build Status](https://travis-ci.org/a8m/angular-code-mirror.svg?branch=master)](https://travis-ci.org/a8m/angular-code-mirror) [![Coverage Status](https://coveralls.io/repos/a8m/angular-code-mirror/badge.png?branch=master)](https://coveralls.io/r/a8m/angular-code-mirror?branch=master)
>2 way binding code mirror for AngularJS based on google-prettify, **v0.0.3**

##Table of contents:
- [Get Started](#get-started)
- [Example](#example)
- [TODO](#todo)
- [Development](#development)

#Get Started
**(1)** Get angular-code-mirror in one of 2 ways:
- clone & [build](#developing) this repository
- via **[Bower](http://bower.io/)**: by running `$ bower install angular-code-mirror` from your console

**(2)** Include `angular-code-mirror.js` (or `angular-code-mirror.min.js`) in your `index.html`, after including Angular itself.

**(3)** Include `angular-code-mirror.css` in the `` tag

**(4)** Add `'ng-code-mirror'` to your main module's list of dependencies.

When you're done, your setup should look similar to the following:

```html







var myApp = angular.module('myApp', ['ng-code-mirror']);


...

...

```
#Example
Example:
```html

...








...

```

#TODO
* Add presets/theme(Darcula, phpstorm, sublime, etc..)

#Development
Clone the project:

```sh
$ git clone
$ npm install
$ bower install
```
Run the tests:
```sh
$ grunt test
```
**Deploy:**

Run the build task, update version before(bower,package)
```sh
$ grunt build
$ git tag v0.*.*
$ git push origin master --tags