From c23c5713e103f553a76b332642c5aea860bb4970 Mon Sep 17 00:00:00 2001
From: Julian Viereck
Date: Wed, 16 Feb 2011 01:19:30 +0800
Subject: [PATCH] Add link to Ace Bookmarklet Builder and add some notes on how
to use the bookmarklet
---
build/Readme.md | 10 ++++++----
build_support/editor_textarea.html | 25 +++++++++++++++++++++----
2 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/build/Readme.md b/build/Readme.md
index 10b84fc..814ba5e 100644
--- a/build/Readme.md
+++ b/build/Readme.md
@@ -22,6 +22,8 @@ Take Ace for a spin!
Check out the Ace live [demo](http://ajaxorg.github.com/ace/build/editor.html) or get a [Cloud9 IDE account](http://run.cloud9ide.com) 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][http://ajaxorg.github.com/ace/build/textarea/editor.html].
+
History
-------
@@ -49,19 +51,19 @@ The easiest version is simply:
var editor = ace.edit("editor");
};
-
+
To change the theme simply include the Theme's JavaScript file
-
+
and configure the editor to use the theme:
editor.setTheme("ace/theme/twilight");
-
+
By default the editor only supports plain text mode. However all other language modes are available as separate modules. After including the mode's Javascript file
-
+
the mode can be used like this:
var JavaScriptMode = require("ace/mode/javascript").Mode;
diff --git a/build_support/editor_textarea.html b/build_support/editor_textarea.html
index 93aa2d6..c3c9a2b 100644
--- a/build_support/editor_textarea.html
+++ b/build_support/editor_textarea.html
@@ -7,6 +7,25 @@
+
Ace Bookmarklet Builder
+
+
+WARNING: Currently, this is only fully supported in non IE browsers.
+
+
+
+How to use it:
+
+
Select the options below as you want them to be by default.
+
Enter the "SourceUrl" where you placed the source data which you find under build/textarea/src (you can also leave the default to server the scripts from GitHub).
+
Click the "Build Link" button to generate your custom Ace Bookmarklet.
+
Drag the generated link to your toolbar or store it somewhere else.
+
Go to a page with an textarea element and click the bookmarklet - wait a little bit till the files are loaded.
+
Click 3 times on the textarea you want to replace - Ace will replace it.
+
To change settings, just click the red icon in the bottom right corner.