目次
文書の過去の版を表示しています。
Ace - The High Performance Code Editor for the Web
Ace はJavaScriptで記述された、Webシステムに組み込み可能なコードエディタです。
本家: Ace - The High Performance Code Editor for the Web
ソースコード: GitHub - ajaxorg/ace: Ace (Ajax.org Cloud9 Editor)
エディタデモ
/** * In fact, you're looking at ACE right now. Go ahead and play with it! * * We are currently showing off the JavaScript mode. ACE has support for 45 * language modes and 24 color themes! */ function add(x, y) { var resultString = "Hello, ACE! The result of your math is: "; var result = x + y; return resultString + result; } var addResult = add(3, 2); console.log(addResult);
インストール
ビルド済みファイルからのインストール
ビルド済みファイルを取得する。
$ git clone https://github.com/ajaxorg/ace-builds.git
ソースコードからのインストール
Ace をソースからビルドするには node.js が必要です。
ソースを取得する。
$ git clone git://github.com/ajaxorg/ace.git
npm (node package manager) で Ace のビルドに必要な依存パッケージをインストールする。
$ cd ace $ npm install
※npm は ace ディレクトリ直下の package.json を参照して自動でインストールしてくれます。
Ace をビルドする。
$ make build
ビルドが終わると実行に必要なファイル群が ace/build に生成されます。
更新
$ cd ace $ git pull $ make build