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
- Host: GitHub
- URL: https://github.com/a8m/angular-code-mirror
- Owner: a8m
- License: mit
- Created: 2014-08-25T10:17:18.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-15T14:03:09.000Z (over 11 years ago)
- Last Synced: 2025-03-25T15:35:13.210Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://a8m.github.io/angular-code-mirror
- Size: 859 KB
- Stars: 13
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
#angular-code-mirror [](https://travis-ci.org/a8m/angular-code-mirror) [](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