Gathering detailed insights and metrics for ace-code
Gathering detailed insights and metrics for ace-code
Gathering detailed insights and metrics for ace-code
Gathering detailed insights and metrics for ace-code
ember-ace
An Ember addon for the Ace code editor
ace-code-editorjs
[Ace Code Editor](https://ace.c9.io/) block for the [Editor.js](https://editorjs.io/) with language selection. Take look demo at [ace-code-editorjs.pages.dev](https://ace-code-editorjs.pages.dev/)
@nowzoo/ngx-ace
A quick and dirty Angular wrapper for the Ace code editor
ace-builds
Ace (Ajax.org Cloud9 Editor)
npm install ace-code
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
26,779 Stars
8,871 Commits
5,289 Forks
612 Watching
48 Branches
504 Contributors
Updated on 27 Nov 2024
JavaScript (98.96%)
HTML (0.99%)
Shell (0.04%)
Makefile (0.01%)
CSS (0.01%)
Cumulative downloads
Total Downloads
Last day
-14.8%
1,052
Compared to previous day
Last week
-20.7%
4,682
Compared to previous week
Last month
20.4%
22,661
Compared to previous month
Last year
256.4%
158,146
Compared to previous year
Note: The new site at http://ace.c9.io contains all the info below along with an embedding guide and all the other resources you need to get started with Ace.
Ace is a standalone code editor written in JavaScript. Our goal is to create a browser based editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page or JavaScript application. Ace is developed as the primary editor for Cloud9 IDE and the successor of the Mozilla Skywriter (Bespin) Project.
Check out the Ace live demo or get a Cloud9 IDE account to experience Ace while editing one of your own GitHub projects.
If you want, you can use Ace as a textarea replacement thanks to the Ace Bookmarklet.
Ace can be easily embedded into any existing web page. You can either use one of pre-packaged versions of ace (just copy one of src*
subdirectories somewhere into your project), or use requireJS to load contents of lib/ace as ace
The easiest version is simply:
1<div id="editor">some text</div> 2<script src="src/ace.js" type="text/javascript" charset="utf-8"></script> 3<script> 4 var editor = ace.edit("editor"); 5</script>
Exploring configuration options Configuring-Ace
With "editor" being the id of the DOM element, which should be converted to an editor. Note that this element must be explicitly sized and positioned absolute
or relative
for Ace to work. e.g.
1#editor { 2 position: absolute; 3 width: 500px; 4 height: 400px; 5}
To change the theme simply include the Theme's JavaScript file
1<script src="src/theme-twilight.js" type="text/javascript" charset="utf-8"></script>
and configure the editor to use the theme:
1editor.setTheme("ace/theme/twilight");
By default the editor only supports plain text mode; many other languages are available as separate modules. After including the mode's JavaScript file:
1<script src="src/mode-javascript.js" type="text/javascript" charset="utf-8"></script>
The mode can then be used like this:
1var JavaScriptMode = ace.require("ace/mode/javascript").Mode; 2editor.session.setMode(new JavaScriptMode());
to destroy editor use
1editor.destroy(); 2editor.container.remove();
Additional usage information, including events to listen to and extending syntax highlighters, can be found on the main Ace website.
You can also find API documentation at https://ajaxorg.github.io/ace-api-docs/.
Also check out the sample code for the kitchen sink demo app.
If you still need help, feel free to ask a question on our discussions page.
After the checkout Ace works out of the box. No build step is required. To try it out, simply start the bundled mini HTTP server using Node.JS
1node ./static.js
The editor can then be opened at http://localhost:8888/kitchen-sink.html.
To open the editor with a file:/// URL see the wiki.
You do not generally need to build ACE. The ace-builds repository endeavours to maintain the latest build, and you can just copy one of src* subdirectories somewhere into your project.
However, all you need is Node.js and npm installed to package ACE. Just run npm install
in the ace folder to install dependencies:
1npm install 2node ./Makefile.dryice.js
To package Ace, we use the dryice build tool developed by the Mozilla Skywriter team. Call node Makefile.dryice.js
on the command-line to start the packing. This build script accepts the following options
1-m minify build files with uglify-js 2-nc namespace require and define calls with "ace" 3-bm builds the bookmarklet version 4--target ./path specify relative path for output folder (default value is "./build")
To generate all the files in the ace-builds repository, run node Makefile.dryice.js full --target ../ace-builds
The Ace unit tests can run on node.js. Assuming you have already done npm install
, just call:
1npm run test
You can also run the tests in your browser by serving:
http://localhost:8888/src/test/tests.html
This makes debugging failing tests much easier.
Ace is a community project and wouldn't be what it is without contributions! We actively encourage and support contributions. The Ace source code is released under the BSD License. This license is very simple, and is friendly to all kinds of projects, whether open source or not. Take charge of your editor and add your favorite language highlighting and keybindings!
Feel free to fork and improve/enhance Ace any way you want. If you feel that the editor or the Ace community will benefit from your changes, please open a pull request. For more information on our contributing guidelines, see CONTRIBUTING.md.
No vulnerabilities found.
Reason
23 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
packaging workflow detected
Details
Reason
license file detected
Details
Reason
Found 22/30 approved changesets -- score normalized to 7
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More