From ea391b355040d35faec98f4a449e1955e0c8b13e Mon Sep 17 00:00:00 2001
From: DanyaPostfactum
Date: Mon, 17 Sep 2012 06:42:28 +1000
Subject: [PATCH 1/8] Monokai theme selection contrast fix
---
lib/ace/theme/monokai.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ace/theme/monokai.css b/lib/ace/theme/monokai.css
index 19c95ed3..d2526206 100644
--- a/lib/ace/theme/monokai.css
+++ b/lib/ace/theme/monokai.css
@@ -53,11 +53,11 @@
}
.ace-monokai .ace_marker-layer .ace_active_line {
- background: #49483E;
+ background: #202020;
}
.ace-monokai .ace_gutter_active_line {
- background-color: #191916;
+ background-color: #272727;
}
.ace-monokai .ace_marker-layer .ace_selected_word {
From b02ba2b3d03c990b8a3fc23e28c73beeb9feca55 Mon Sep 17 00:00:00 2001
From: Lennart Kats
Date: Thu, 13 Sep 2012 16:49:46 +0300
Subject: [PATCH 2/8] Add varargs console.log to worker
---
lib/ace/worker/worker.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ace/worker/worker.js b/lib/ace/worker/worker.js
index 2e1853df..102d8cd0 100644
--- a/lib/ace/worker/worker.js
+++ b/lib/ace/worker/worker.js
@@ -1,8 +1,8 @@
"no use strict";
var console = {
- log: function(msg) {
- postMessage({type: "log", data: msg});
+ log: function(msgs) {
+ postMessage({type: "log", data: arguments.join(" ")});
}
};
var window = {
From 4d2e0931db10dae89d3fc77104427693fd009296 Mon Sep 17 00:00:00 2001
From: Lennart Kats
Date: Thu, 13 Sep 2012 17:07:21 +0300
Subject: [PATCH 3/8] Add sanity check for require([module], function(){}) form
---
lib/ace/worker/worker.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/ace/worker/worker.js b/lib/ace/worker/worker.js
index 102d8cd0..0e7270a3 100644
--- a/lib/ace/worker/worker.js
+++ b/lib/ace/worker/worker.js
@@ -30,6 +30,9 @@ var normalizeModule = function(parentId, moduleName) {
};
var require = function(parentId, id) {
+ if (!id.charAt)
+ throw new Error("worker.js require() accepts only (parentId, id) as arguments");
+
var id = normalizeModule(parentId, id);
var module = require.modules[id];
From bcbdd41751a07094c99756b3a075fb9b12319c55 Mon Sep 17 00:00:00 2001
From: Garen Torikian
Date: Mon, 17 Sep 2012 11:27:46 -0700
Subject: [PATCH 4/8] Site tweaks
---
api/resources/csses/ace_api.css | 13 +++++++++++--
api/resources/javascripts/disqus-ext.js | 12 +++++-------
doc/resources/ace/skeleton/csses/ace_api.css | 13 +++++++++++--
doc/site/js/main.js | 9 +++++++--
doc/site/style.css | 1 +
index.html | 6 +++---
6 files changed, 38 insertions(+), 16 deletions(-)
diff --git a/api/resources/csses/ace_api.css b/api/resources/csses/ace_api.css
index f849dcf7..1a974a02 100644
--- a/api/resources/csses/ace_api.css
+++ b/api/resources/csses/ace_api.css
@@ -147,6 +147,11 @@ form.navbar-search {
form.navbar-search .search-query {
background-color: #FFFFFF;
+ border: none;
+}
+
+.navbar-search .search-query:focus, .navbar-search .search-query.focused {
+ padding: 4px 9px;
}
h3.api_title {
@@ -281,9 +286,14 @@ ul.menu {
.srolled .membersContent {
/*top : 0;*/
width: 625px;
- padding-left: 330px;
+ padding-left: 327px;
margin : 0 auto 0 auto;
}
+
+.srolled ul.nav {
+ padding-right: 10px;
+}
+
.membersBackground {
/* background-color: white;
position: fixed;
@@ -492,7 +502,6 @@ header.filler {
}
.centerpiece {
- background: url(../images/sidebar_border.png) repeat-y 230px 0;
min-height: 100%;
}
diff --git a/api/resources/javascripts/disqus-ext.js b/api/resources/javascripts/disqus-ext.js
index 66da8bfc..67212a3f 100644
--- a/api/resources/javascripts/disqus-ext.js
+++ b/api/resources/javascripts/disqus-ext.js
@@ -11,12 +11,10 @@ function setupDisqus() {
var disqus_identifier = "api/" + (lochash.substr(lochash.indexOf('api=')).split('&')[0].split('=')[1] || "index") + ".html";
(function() {
- if (document.getElementById(dsqId))
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).removeChild(document.getElementById(dsqId));
-
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
- dsq.id="disqusScript";
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ if (document.getElementById(dsqId) === null) {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ }
})();
}
\ No newline at end of file
diff --git a/doc/resources/ace/skeleton/csses/ace_api.css b/doc/resources/ace/skeleton/csses/ace_api.css
index f849dcf7..1a974a02 100644
--- a/doc/resources/ace/skeleton/csses/ace_api.css
+++ b/doc/resources/ace/skeleton/csses/ace_api.css
@@ -147,6 +147,11 @@ form.navbar-search {
form.navbar-search .search-query {
background-color: #FFFFFF;
+ border: none;
+}
+
+.navbar-search .search-query:focus, .navbar-search .search-query.focused {
+ padding: 4px 9px;
}
h3.api_title {
@@ -281,9 +286,14 @@ ul.menu {
.srolled .membersContent {
/*top : 0;*/
width: 625px;
- padding-left: 330px;
+ padding-left: 327px;
margin : 0 auto 0 auto;
}
+
+.srolled ul.nav {
+ padding-right: 10px;
+}
+
.membersBackground {
/* background-color: white;
position: fixed;
@@ -492,7 +502,6 @@ header.filler {
}
.centerpiece {
- background: url(../images/sidebar_border.png) repeat-y 230px 0;
min-height: 100%;
}
diff --git a/doc/site/js/main.js b/doc/site/js/main.js
index e4f78ffc..e206f413 100644
--- a/doc/site/js/main.js
+++ b/doc/site/js/main.js
@@ -39,7 +39,7 @@ $(function() {
$("li#dropdown_" + section.replace(/\./g, '\\.') + " a").triggerHandler('click');
}
- setupDisqus();
+ // setupDisqus();
});
}
@@ -66,6 +66,10 @@ $(function() {
});
});
+ $('a.external').click(function(e) {
+ e.preventDefault();
+ });
+
var tabs = $("#tabnav"),
tab_a_selector = "a";
@@ -118,7 +122,8 @@ $(function() {
$(window).on("hashchange", function(e) {
tabs.each(function() {
var idx = $.bbq.getState("nav") || "about";
- $(this).find(tab_a_selector + "[href='#" + idx + "']").triggerHandler('click');
+ var section = e.fragment.split("&")[1] || "";
+ $(this).find(tab_a_selector + "[href='#" + idx + "&" + section + "']").triggerHandler('click');
// handles dropping in from new link
var api = $.bbq.getState("api");
diff --git a/doc/site/style.css b/doc/site/style.css
index 40118ed5..5bb9a900 100644
--- a/doc/site/style.css
+++ b/doc/site/style.css
@@ -49,6 +49,7 @@ H3 {
H4 {
font-size:21px;
color:#222222;
+ margin-bottom:8px;
}
P {
diff --git a/index.html b/index.html
index 90dceff1..6406d8bb 100644
--- a/index.html
+++ b/index.html
@@ -90,8 +90,8 @@ console.log(addResult);
kitchen sink.
ACE Features
- - Syntax highlighting for over 40 languages (TextMate/Sublime/.tmlanguage files can be imported)
- - Over 20 themes (TextMate/Sublime/.tmtheme files can be imported)
+ - Syntax highlighting for over 40 languages (TextMate/Sublime/.tmlanguage files can be imported)
+ - Over 20 themes (TextMate/Sublime/.tmtheme files can be imported)
- Automatic indent and outdent
- An optional command line
- Handles huge documents (at last check, 4,000,000 lines is the upper limit)
@@ -344,7 +344,7 @@ editor.replace('bar');
//...
}
});
- Importing Themes and Languages
+ Importing Themes and Languages
ACE supports the importing of .tmtheme and .tmlanguage files for use
in the editor. The task is accomplished by two simple node scripts.
From 844c37fda935d819d1e1f24c2a638b93a20f7c78 Mon Sep 17 00:00:00 2001
From: Garen Torikian
Date: Mon, 17 Sep 2012 12:36:40 -0700
Subject: [PATCH 5/8] Few more tweaks
---
api/editor.html | 6 ++-
api/resources/javascripts/disqus-ext.js | 4 +-
.../ace/skeleton/javascripts/clicker.js | 2 +-
doc/site/images/ac-logo.png | Bin 0 -> 2662 bytes
index.html | 45 ++----------------
5 files changed, 12 insertions(+), 45 deletions(-)
create mode 100644 doc/site/images/ac-logo.png
diff --git a/api/editor.html b/api/editor.html
index a7798f30..f2493025 100644
--- a/api/editor.html
+++ b/api/editor.html
@@ -1,4 +1,4 @@
-The main entry point into the Ace functionality. The Editor manages the EditSession (which manages Documents), as well as the VirtualRenderer, which draws everything to the screen. Event sessions dealing with the mouse and keyboard are bubbled up from Document to the Editor, which decides what to do with them.
+
The main entry point into the Ace functionality. The Editor manages the EditSession (which manages Documents), as well as the VirtualRenderer, which draws everything to the screen. Event sessions dealing with the mouse and keyboard are bubbled up from Document to the Editor, which decides what to do with them.
Creates a new Editor object.
Creates a new Editor object.
Arguments
| renderer | VirtualRenderer | Required. Associated VirtualRenderer that draws everything
@@ -35,7 +35,9 @@
|
- Editor.$updateHighlightActiveLine()
- Editor.addSelectionMarker(Range orientedRange)
Adds the selection and cursor.
Adds the selection and cursor.
Arguments
| orientedRange | Range | Required. A range containing a cursor
- |
Outdents the current line.
+
aligns cursors or selected text
+
aligns cursors or selected text
+
Outdents the current line.
Outdents the current line.
Blurs the current textInput.
Blurs the current textInput.
diff --git a/api/resources/javascripts/disqus-ext.js b/api/resources/javascripts/disqus-ext.js
index 01eef605..6bb7ff4e 100644
--- a/api/resources/javascripts/disqus-ext.js
+++ b/api/resources/javascripts/disqus-ext.js
@@ -9,9 +9,9 @@ function setupDisqus(href) {
(function() {
if (document.getElementById("disqusScript") === null) {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}
})();
}
\ No newline at end of file
diff --git a/doc/resources/ace/skeleton/javascripts/clicker.js b/doc/resources/ace/skeleton/javascripts/clicker.js
index ddffe520..b5a86168 100644
--- a/doc/resources/ace/skeleton/javascripts/clicker.js
+++ b/doc/resources/ace/skeleton/javascripts/clicker.js
@@ -58,7 +58,7 @@ function setupClicker() {
// for the top dropdown
$('li.memberLink a').click(transformHash);
- $('a[href^="#"]').click(transformHash);
+ //$('a[href^="#"]').click(transformHash);
$('.related-to', '.metaInfo').click(function(){
location.hash = $(this).find('a').attr('href').split('#')[1];
diff --git a/doc/site/images/ac-logo.png b/doc/site/images/ac-logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..6ca069a37c6a87d6169e44e37244efd024f1eebf
GIT binary patch
literal 2662
zcmV-s3YqnZP)
(_`g8%^e{{R4h=l}px2mk>USO5SzmjD14Z`WEM
zkN^M)>`6pHRCwClntN~+)g8w_XLs+tNk|B=gq|s6yr51Sv2*f~=d$W5_|JdJ!
zb=lo}ZxXH3@66`joOA9uXV3Td-c?p2K>!v5mB2Id|2Ke}fxW;qpb3}*^aWM{&jS5{
zdw?GTHlSq8GGGhP2bd2u13vmz%tmi+@@CzDM6UQeda?aBTzFD
z^KLn?wZKXl(+IpGH&FoG2Bd+{$y|OiX2=yI7`uSEvKKGL2!T!hADm9AAp^>rN7gr~
z+FggO>E%WmLxEv{p+G5xVS!46QlQWnhJs*1YJkUs$oQIkb`@#g1?(0Hd_xWm-~`Ye
zSPC=%3DKOSXRZUlVL61}KtI6o^pBIz(SQYP0A7-|?eck0<^Z@z_5qN&D+_oJxLl-v
zzwdq~0Y4=g`+-vd?ZahnEBzf#nkLI&*0p_7ciCyi?x~5b=w9le(11cKEkZAU6`(bi
zQl71Y2-yvQHhgOo0(Stv6jgml+WP}1f$<`l329p)#1uR!
z>zpT2_lOYnP5Di4xiTo13lWA*aswNsZGdRpT%es#`V}yn>}VI!SDN`!Qfd;9DblXA
z*C%a7%I4|eeN)AKyETtJTxZgdR3vSXK2nY%ghs1R|XXO1brAAq-oe7tsA@LeGh
zk)S8#knfSUExiaJJ)X;00e=Ce$m
zFO7EI2<|D
zOhMtfN0%WaX|rT#pHxBbGW#os>kJx_il!8mcAC+OU?PIZm<>EHA!0u0FX7*`h%rA9
ziM=d``Mxhv*{~Lxzu$TjM%fP9(Fz?xhu2Kal1#QWcuds(319nHB?`&~%Yjaw9K?^Kz;XHB
zMXn&+4=l=Iy_a(cZ!;(T0;FkdNMo8RVpzt9sKtXnlX|dYQF>I|gu=KcZb8h{D5cL)
z5yKO9&djov8VNy@|B>Fb(P1Y
zMFlfWz)~k=PwUX7fWgi{C~NzzRsv3jM@U~#27D0se8gczfE49|MYt)tN-Eh1eES5jaCeP#9b7sg!2J2C0nR;mHS-
zEF9)js&kmPgV^@FB7Dv#id0hLIJ%`;u}REnDvFGtDB?t(3oVq(k697sCR+(+1MUN<
zY&a~>F#3OrYh;_V5s`^Fg0k@Q+h`MEN}VmEUKT-wBM$yq34t$?YQd)!TXG>HqZ#!9
zA>er;orhYv5#55{43e^jAE(4@y%3ODe
z|3{KEJfwX*@bi!oM%*4V5A!xsvgENZ+)O`2FKX=YY2Nai2ki
zVN^g{17{zGwFVA=GGeS+R?E)qrzz`ZWh3RSd^EyK#^MOOz8?4OjjMBTx^0D^+boJ0
ze@lp2`xov@6s?8(JR@#Ue=^B)&(zYPvxN?4W2*>pGT(&^-16}9h%r-fUw_#rS!=G>
z<1N{crwHgp7u+JGKO&nVWsM-L&c{SVU;<#GUF}%0)VJ7BZ7=4kOE!^
zVaiiY7||9c(Vy_`mB{3FQS)Rg=I)H=og*KLv;4Li_uZ?Fd91gAv#;`;Ne%K?|0HlL
zZYe*iGLS(}(c-+Lrfg=)kLTp-F1G&?NvxW4oVQRCo?5xN)4qdPo5LJcVuQbcTc#g~
z`VE_OC07*qoM6N<$f*oYr9{>OV
literal 0
HcmV?d00001
diff --git a/index.html b/index.html
index 4d9c50c2..c5860a0a 100644
--- a/index.html
+++ b/index.html
@@ -464,104 +464,69 @@ tests for the highlighting.
RStudio
-
-
Sky Edit
-
-
WaveMaker
-
-
Play My Code
-
-
Qooxdoo playground
-
-
Radiant CMS
-
-
Developer Companion
-
-
PythonAnywhere
-
-
+
Application Craft
-
-
shiftEdit
-
-
Akshell
-
-
beanstalk
-
-
Neutron IDE
-
-
Acebug
-
-
Weecod
-
-
RubyMonk
-
-
tmpltr
-
-
CMS Made Simple
-
-
Try Jasmine
-
-
Codebender
-
-
ShareLaTeX
+ -
+ Fine Cut Engine
+
-
+
Your Site Here
From b006c820b90e4927f79206ec1ce4cb22ed4546ff Mon Sep 17 00:00:00 2001
From: Garen Torikian
Date: Mon, 17 Sep 2012 12:51:57 -0700
Subject: [PATCH 6/8] Remove links, rearrange icons
---
index.html | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/index.html b/index.html
index c5860a0a..874adfcb 100644
--- a/index.html
+++ b/index.html
@@ -86,8 +86,8 @@ console.log(addResult);
kitchen sink.
ACE Features
- - Syntax highlighting for over 40 languages (TextMate/Sublime/.tmlanguage files can be imported)
- - Over 20 themes (TextMate/Sublime/.tmtheme files can be imported)
+ - Syntax highlighting for over 40 languages (TextMate/Sublime/.tmlanguage files can be imported)
+ - Over 20 themes (TextMate/Sublime/.tmtheme files can be imported)
- Automatic indent and outdent
- An optional command line
- Handles huge documents (at last check, 4,000,000 lines is the upper limit)
@@ -463,6 +463,11 @@ tests for the highlighting.
style="position: relative; left: 19px; top: 2px;" />
RStudio
+ -
+
+ Application Craft
+
-
Sky Edit
@@ -484,11 +489,6 @@ tests for the highlighting.
-
PythonAnywhere
- -
-
- Application Craft
-
-
shiftEdit
From 119ab08977d1d8c80fd854951cbbff115790bf0c Mon Sep 17 00:00:00 2001
From: Garen Torikian
Date: Mon, 17 Sep 2012 13:00:45 -0700
Subject: [PATCH 7/8] Fix site expansion
---
doc/site/js/main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/site/js/main.js b/doc/site/js/main.js
index 353eb56e..6bfad39f 100644
--- a/doc/site/js/main.js
+++ b/doc/site/js/main.js
@@ -105,7 +105,7 @@ $(function() {
tabs.each(function() {
var idx = $.bbq.getState("nav") || "about";
var section = e.fragment.split("&")[1] || "";
- $(this).find(tab_a_selector + "[href='#" + idx + "&" + section + "']").triggerHandler('click');
+ $(this).find(tab_a_selector + "[href='#" + idx + "']").triggerHandler('click');
// handles dropping in from new link
var api = $.bbq.getState("api");
From 04e3e2ca599b7924fff82034cd863e8fe13e46ed Mon Sep 17 00:00:00 2001
From: Matt
Date: Mon, 17 Sep 2012 14:23:55 -0700
Subject: [PATCH 8/8] Update Readme.md
---
Readme.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Readme.md b/Readme.md
index f9ec20d1..7960e48c 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,6 +1,8 @@
Ace (Ajax.org Cloud9 Editor)
============================
+_Note_: The new site at http://ace.ajax.org 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](http://www.cloud9ide.com/) and the successor of the Mozilla Skywriter (Bespin) Project.
Features