You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+17-45
Original file line number
Diff line number
Diff line change
@@ -10,28 +10,24 @@ Features
10
10
* Automatic indent and outdent
11
11
* An optional command line
12
12
* Handles huge documents (100,000 lines and more are no problem)
13
-
* Fully customizable key bindings including VI and Emacs modes
13
+
* Fully customizable key bindings including VIM and Emacs modes
14
14
* Themes (TextMate themes can be imported)
15
15
* Search and replace with regular expressions
16
16
* Highlight matching parentheses
17
17
* Toggle between soft tabs and real tabs
18
18
* Displays hidden characters
19
19
* Drag and drop text using the mouse
20
20
* Line wrapping
21
-
* Unstructured / user code folding
22
-
* Live syntax checker (currently JavaScript/CoffeeScript)
21
+
* Code folding
22
+
* Multiple selections
23
+
* Live syntax checker (currently JavaScript/CoffeeScript/Css/XQuery)
23
24
24
25
Take Ace for a spin!
25
26
--------------------
26
27
27
-
Check out the Ace live [demo](http://ajaxorg.github.com/ace/) or get a [Cloud9 IDE account](http://run.cloud9ide.com) to experience Ace while editing one of your own GitHub projects.
28
+
Check out the Ace live [demo](http://ajaxorg.github.com/ace-builds/kitchen-sink.html) or get a [Cloud9 IDE account](http://c9.io) to experience Ace while editing one of your own GitHub projects.
28
29
29
-
If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.com/ace/build/textarea/editor.html).
30
-
31
-
History
32
-
-------
33
-
34
-
Previously known as “Bespin” and “Skywriter” it’s now known as Ace (Ajax.org Cloud9 Editor)! Bespin and Ace started as two independent projects, both aiming to build a no-compromise code editor component for the web. Bespin started as part of Mozilla Labs and was based on the canvas tag, while Ace is the Editor component of the Cloud9 IDE and is using the DOM for rendering. After the release of Ace at JSConf.eu 2010 in Berlin the Skywriter team decided to merge Ace with a simplified version of Skywriter's plugin system and some of Skywriter's extensibility points. All these changes have been merged back to Ace. Both Ajax.org and Mozilla are actively developing and maintaining Ace.
30
+
If you want, you can use Ace as a textarea replacement thanks to the [Ace Bookmarklet](http://ajaxorg.github.com/ace-builds/textarea/editor.html).
35
31
36
32
Getting the code
37
33
----------------
@@ -40,24 +36,21 @@ Ace is a community project. We actively encourage and support contributions. The
40
36
41
37
```bash
42
38
git clone git://github.com/ajaxorg/ace.git
43
-
cd ace
44
-
git submodule update --init --recursive
45
39
```
46
40
47
41
Embedding Ace
48
42
-------------
49
43
50
-
Ace can be easily embedded into any existing web page. The Ace git repository ships with a pre-packaged version of Ace inside of the `build` directory. The same packaged files are also available as a separate [download](https://github.com/ajaxorg/ace/downloads). Simply copy the contents of the `src` subdirectory somewhere into your project and take a look at the included demos of how to use Ace.
44
+
Ace can be easily embedded into any existing web page. You can either use one of pre-packaged versions of [ace](https://github.com/ajaxorg/ace-builds/) (just copy one of `src*` subdirectories somewhere into your project), or use requireJS to load contents of [lib/ace](https://github.com/ajaxorg/ace/tree/master/lib/ace) as `ace`
@@ -96,10 +89,14 @@ Then the mode can be used like this:
96
89
editor.getSession().setMode(newJavaScriptMode());
97
90
```
98
91
92
+
and take a look at the one of [included](https://github.com/ajaxorg/ace-builds/blob/master/editor.html)[demos](https://github.com/ajaxorg/ace/blob/master/demo/kitchen-sink/demo.js) of how to use Ace.
93
+
99
94
Documentation
100
95
-------------
101
96
102
-
You find a lot more sample code in the [demo app](https://github.com/ajaxorg/ace/blob/master/demo/demo.js).
97
+
You can find api documentation at [http://ajaxorg.github.com/ace/api/index.html](http://ajaxorg.github.com/ace/api/index.html).
98
+
99
+
And a lot more sample code in the [demo app](https://github.com/ajaxorg/ace/blob/master/demo/kitchen-sink/demo.js).
103
100
104
101
There is also some documentation on the [wiki page](https://github.com/ajaxorg/ace/wiki).
105
102
@@ -126,42 +123,17 @@ The editor can then be opened at http://localhost:8888/index.html.
126
123
Package Ace
127
124
-----------
128
125
129
-
To package Ace we use the dryice build tool developed by the Mozilla Skywriter team. Before you can build you need to make sure that the submodules are up to date.
130
-
131
-
```bash
132
-
git submodule update --init --recursive
133
-
```
134
-
135
-
Make sure you at least version 0.3.0 of dryice
136
-
137
-
```bash
138
-
npm install dryice
139
-
```
140
-
141
-
Afterwards Ace can be built by calling
126
+
To package Ace we use the dryice build tool developed by the Mozilla Skywriter team. Make sure you at latest version of dryice
142
127
143
128
```bash
144
-
./Makefile.dryice.js normal
145
-
```
146
-
147
-
The packaged Ace will be put in the 'build' folder.
148
-
149
-
To build the bookmarklet version execute
150
-
151
-
```bash
152
-
./Makefile.dryice.js bm
129
+
npm install
130
+
node ./Makefile.dryice.js ;; -m to minify, -nc to use namespaced requre, -target ./path/to/build/dir
153
131
```
154
132
155
133
Running the Unit Tests
156
134
----------------------
157
135
158
-
The Ace unit tests run on node.js. Before the first run a couple of node modules have to be installed. The easiest way to do this is by using the node package manager (npm). In the Ace base directory simply call
159
-
160
-
```bash
161
-
npm link .
162
-
```
163
-
164
-
To run the tests call:
136
+
The Ace unit tests can run on node.js. Assuming you have already done `npm install`, just call:
Copy file name to clipboardExpand all lines: index.html
+1-1
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ <h2>Features</h2>
110
110
111
111
<h2>Take Ace for a spin!</h2>
112
112
<divclass="divider"></div>
113
-
<p>Check out the <ahref="build/kitchen-sink.html">Ace live demo</a> or get a <ahref="http://c9.io">Cloud9 IDE account</a> to experience Ace while editing one of your own GitHub projects.</p>
113
+
<p>Check out the <ahref="http://ajaxorg.github.com/ace-builds/kitchen-sink.html">Ace live demo</a> or get a <ahref="http://c9.io">Cloud9 IDE account</a> to experience Ace while editing one of your own GitHub projects.</p>
0 commit comments