Skip to content

Commit 416e0ec

Browse files
committed
fix annoying misaligned comments
1 parent a35ba7c commit 416e0ec

11 files changed

+610
-646
lines changed

Readme.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Ace is a standalone code editor written in JavaScript. Our goal is to create a b
88
Features
99
--------
1010

11-
* Syntax highlighting for over 110 languages (TextMate/Sublime/_.tmlanguage_ files can be imported)
11+
* Syntax highlighting for over 120 languages (TextMate/Sublime/_.tmlanguage_ files can be imported)
1212
* Over 20 themes (TextMate/Sublime/_.tmtheme_ files can be imported)
1313
* Automatic indent and outdent
1414
* An optional command line
@@ -80,9 +80,17 @@ The mode can then be used like this:
8080

8181
```javascript
8282
var JavaScriptMode = ace.require("ace/mode/javascript").Mode;
83-
editor.getSession().setMode(new JavaScriptMode());
83+
editor.session.setMode(new JavaScriptMode());
8484
```
8585

86+
to destroy editor use
87+
88+
```javascript
89+
editor.destroy();
90+
editor.container.remove();
91+
```
92+
93+
8694
Documentation
8795
-------------
8896

api/edit_session.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1599,10 +1599,10 @@ <h4>Arguments</h4><table class="argumentTable argument-list table table-striped
15991599
</ul>
16001600
</div>
16011601
<div class="sideToggler">
1602-
<div id="ellipsis_EditSession.getSelection" class="ellipsis_description"><p>Returns the string of the current selection.</p>
1602+
<div id="ellipsis_EditSession.getSelection" class="ellipsis_description"><p>Returns selection object.</p>
16031603

16041604
</div>
1605-
<div class="description"><p>Returns the string of the current selection.</p>
1605+
<div class="description"><p>Returns selection object.</p>
16061606

16071607
</div>
16081608
</div>

api/editor.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ <h4>Arguments</h4><table class="argumentTable argument-list table table-striped
16611661
<li class="signature-call"><span id="Editor.getSelection" class="member-name methodClicker"><span class="sigClassName">Editor.</span><span class="sigMemberName">getSelection</span></span><span class="emptyArgumentList">()</span>
16621662
<li class="signature-returns">
16631663
<ul class="argument-types">
1664-
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="returnType " title="String" data-id="String">String</a></li>
1664+
<li class="argument-type"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String" class="returnType " title="String" data-id="String">Selection</a></li>
16651665
</ul>
16661666
</li></li>
16671667
</ul>
@@ -1671,10 +1671,10 @@ <h4>Arguments</h4><table class="argumentTable argument-list table table-striped
16711671
</ul>
16721672
</div>
16731673
<div class="sideToggler">
1674-
<div id="ellipsis_Editor.getSelection" class="ellipsis_description"><p>Returns the currently highlighted selection.</p>
1674+
<div id="ellipsis_Editor.getSelection" class="ellipsis_description"><p>Returns selection object.</p>
16751675

16761676
</div>
1677-
<div class="description"><p>Returns the currently highlighted selection.</p>
1677+
<div class="description"><p>Returns selection object.</p>
16781678

16791679
</div>
16801680
</div>

doc/site/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $(function() {
3939
<div class="alert alert-error">\
4040
<button type="button" class="close" data-dismiss="alert">\xd7</button>\
4141
<strong>Oh No!</strong> Couldn\'t load <code>build/src/ace.js</code>.<br>\
42-
You can build it by running <code>node Makefile.dryice.js</code><br>\
42+
You can build it by running <code>npm install ; node Makefile.dryice.js</code><br>\
4343
Or download older version by running <code>git submodule update --init --recursive</code><br>\
4444
</div>\
4545
</div>');

0 commit comments

Comments
 (0)