Update Readme. Make static.py serve on port 8888 like static.js does.

This commit is contained in:
Julian Viereck 2011-05-21 12:07:35 +02:00 • committed by Fabian Jakobs
commit bc93a71771
2 changed files with 53 additions and 23 deletions

View file

@ -16,6 +16,10 @@ Features
* Highlight matching parentheses * Highlight matching parentheses
* Toggle between soft tabs and real tabs * Toggle between soft tabs and real tabs
* Displays hidden characters * Displays hidden characters
* Drap and drop text using the mouse
* Line wrapping
* Unstructured / user code folding
* Live syntax checker (currently JavaScript/CoffeeScript)
Take Ace for a spin! Take Ace for a spin!
-------------------- --------------------
@ -35,6 +39,7 @@ Getting the code
Ace is a community project. We actively encourage and support contributions. The Ace source code is hosted on GitHub. It is released under the Mozilla tri-license (MPL/GPL/LGPL), the same license used by Firefox. This license 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! Ace is a community project. We actively encourage and support contributions. The Ace source code is hosted on GitHub. It is released under the Mozilla tri-license (MPL/GPL/LGPL), the same license used by Firefox. This license 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!
git clone git://github.com/ajaxorg/ace.git git clone git://github.com/ajaxorg/ace.git
cd ace
git submodule update --init --recursive git submodule update --init --recursive
Embedding Ace Embedding Ace
@ -78,6 +83,15 @@ Then the mode can be used like this:
var JavaScriptMode = require("ace/mode/javascript").Mode; var JavaScriptMode = require("ace/mode/javascript").Mode;
editor.getSession().setMode(new JavaScriptMode()); editor.getSession().setMode(new JavaScriptMode());
Documentation
-------------
You find a lot more sample code in the [demo app](https://github.com/ajaxorg/ace/blob/master/demo/demo.js).
There is also some documentation on the [wiki page](https://github.com/ajaxorg/ace/wiki).
If you still need help, feel free to drop a mail on the [ace mailing list](http://groups.google.com/group/ace-discuss).
Running Ace Running Ace
----------- -----------
@ -85,7 +99,11 @@ After the checkout Ace works out of the box. No build step is required. Open 'ed
./static.py ./static.py
The editor can then be opened at http://localhost:9999/editor.html. Or using Node.JS
./static.js
The editor can then be opened at http://localhost:8888/index.html.
Package Ace Package Ace
----------- -----------
@ -96,10 +114,14 @@ To package Ace we use the dryice build tool developed by the Mozilla Skywriter t
Afterwards Ace can be built by calling Afterwards Ace can be built by calling
./Makefile.dryice.js ./Makefile.dryice.js normal
The packaged Ace will be put in the 'build' folder. The packaged Ace will be put in the 'build' folder.
To build the bookmarklet version execute
./Makefile.dryice.js bm
Running the Unit Tests Running the Unit Tests
---------------------- ----------------------
@ -111,6 +133,14 @@ To run the tests call:
node lib/ace/test/all.js node lib/ace/test/all.js
You can also run the tests in your browser by serving:
http://localhost:8888/lib/ace/test/tests.html
This makes debugging failing tests way more easier.
_Note_: Currently (2011-05-21) the tests seem to run on Chrome only.
Contributing Contributing
------------ ------------

View file

@ -209,7 +209,7 @@ def command():
if not host: if not host:
host = '0.0.0.0' host = '0.0.0.0'
if not port: if not port:
port = 9999 port = 8888
try: try:
port = int(port) port = int(port)
except: except:
@ -230,8 +230,8 @@ def test():
from wsgiref.validate import validator from wsgiref.validate import validator
app = Cling(getcwd()) app = Cling(getcwd())
try: try:
print "Serving " + getcwd() + " to http://localhost:9999" print "Serving " + getcwd() + " to http://localhost:8888"
make_server('0.0.0.0', 9999, validator(app)).serve_forever() make_server('0.0.0.0', 8888, validator(app)).serve_forever()
except KeyboardInterrupt, ki: except KeyboardInterrupt, ki:
print "" print ""
print "Ciao, baby!" print "Ciao, baby!"