{"id":16939297,"url":"https://github.com/a8m/angular-code-mirror","last_synced_at":"2025-04-11T15:32:13.421Z","repository":{"id":20041597,"uuid":"23309823","full_name":"a8m/angular-code-mirror","owner":"a8m","description":"2 way binding codemirror for AngularJS based on google-prettify","archived":false,"fork":false,"pushed_at":"2014-10-15T14:03:09.000Z","size":880,"stargazers_count":13,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T15:35:13.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://a8m.github.io/angular-code-mirror","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a8m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-25T10:17:18.000Z","updated_at":"2020-06-20T02:42:33.000Z","dependencies_parsed_at":"2022-08-27T03:17:49.148Z","dependency_job_id":null,"html_url":"https://github.com/a8m/angular-code-mirror","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fangular-code-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fangular-code-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fangular-code-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fangular-code-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a8m","download_url":"https://codeload.github.com/a8m/angular-code-mirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247866130,"owners_count":21009239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:04:17.055Z","updated_at":"2025-04-11T15:32:12.978Z","avatar_url":"https://github.com/a8m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#angular-code-mirror \u0026nbsp; [![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)\n\u003e2 way binding code mirror for AngularJS based on google-prettify,  **v0.0.3**\n\n##Table of contents:\n- [Get Started](#get-started)\n- [Example](#example)\n- [TODO](#todo)\n- [Development](#development)\n\n#Get Started\n**(1)** Get angular-code-mirror in one of 2 ways:\n  - clone \u0026 [build](#developing) this repository\n  - via **[Bower](http://bower.io/)**: by running `$ bower install angular-code-mirror` from your console\n\n**(2)** Include `angular-code-mirror.js` (or `angular-code-mirror.min.js`) in your `index.html`, after including Angular itself.\n\n**(3)** Include `angular-code-mirror.css` in the `\u003chead\u003e` tag\n\n**(4)** Add `'ng-code-mirror'` to your main module's list of dependencies.\n\nWhen you're done, your setup should look similar to the following:\n\n```html\n\u003c!doctype html\u003e\n\u003chtml ng-app=\"myApp\"\u003e\n\u003chead\u003e\n    \u003c!--style--\u003e\n    \u003clink rel=\"stylesheet\" href=\"vendor/angular-code-mirror/css/angular-code-mirror.css\"/\u003e\n    \u003c!--scripts--\u003e\n    \u003cscript src=\"//ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"vendor/angular-code-mirror.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n        var myApp = angular.module('myApp', ['ng-code-mirror']);\n\n    \u003c/script\u003e\n    ...\n\u003c/head\u003e\n\u003cbody\u003e\n    ...\n\u003c/body\u003e\n\u003c/html\u003e\n```\n#Example\nExample:\n```html\n\u003cbody\u003e\n ...\n  \u003c!-- add ng-model to your input/textarea --\u003e\n  \u003ctextarea  class=\"form-control\" rows=\"20\" ng-model=\"code\"\u003e\n  \n  \u003c!--select language and bind the model to the code-mirror directive--\u003e\n  \u003ccode-mirror lang=\"js\" model=\"code\"\u003e\u003c/code-mirror\u003e\n  \n    \u003c!--codemirror with line numbers--\u003e\n  \u003ccode-mirror lang=\"js\" model=\"code\" line-numbers=\"true\"\u003e\u003c/code-mirror\u003e\n ...\n\u003c/body\u003e\n```\n\n#TODO\n* Add presets/theme(Darcula, phpstorm, sublime, etc..)\n\n#Development\nClone the project: \u003cbr/\u003e\n```sh\n$ git clone \n$ npm install\n$ bower install\n```\nRun the tests:\n```sh\n$ grunt test\n```\n**Deploy:**\u003cbr/\u003e\nRun the build task, update version before(bower,package)\n```sh\n$ grunt build\n$ git tag v0.*.*\n$ git push origin master --tags\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fangular-code-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa8m%2Fangular-code-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fangular-code-mirror/lists"}