Continue layout work
|
|
@ -2,7 +2,7 @@ var panino = require("panino");
|
|||
|
||||
var srcPath = process.cwd() + "/../lib/ace";
|
||||
|
||||
panino.main(["--path=" + srcPath, "-o", "./out/", "-a", "./additionalObjs.json", "-t", "Ace API Documentation", "--skin", "./resources/ace/"], function(err) {
|
||||
panino.main(["--path=" + srcPath, "-o", "./out/", "-a", "./additionalObjs.json", "-t", "Ace API", "--skin", "./resources/ace/"], function(err) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
process.exit(-1);
|
||||
|
|
|
|||
|
|
@ -3,10 +3,8 @@
|
|||
*/
|
||||
body {
|
||||
min-width: 1010px;
|
||||
}
|
||||
body {
|
||||
background: #edf5fa url(../images/main_bg.png) 0 0 repeat;
|
||||
color: #262626
|
||||
color: #2D2D2D;
|
||||
background: #EDF5FA url(../images/main_bg.png) 0 0 repeat;
|
||||
}
|
||||
|
||||
ul {
|
||||
|
|
@ -22,14 +20,6 @@ a, a:hover {
|
|||
}
|
||||
|
||||
code {
|
||||
/* background-color: #fce68c;*/
|
||||
|
||||
/* font-size: 11px;
|
||||
line-height: 16px;
|
||||
font-family: 'Ubuntu Mono',Monaco,Consolas,monospace !important;
|
||||
padding: 0;
|
||||
|
||||
*/
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-family: 'Ubuntu Mono',Monaco,Consolas,monospace !important;
|
||||
|
|
@ -39,6 +29,7 @@ code {
|
|||
display: inline-block;
|
||||
padding: 0 4px;
|
||||
margin: 2px 1px;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
pre {
|
||||
|
|
@ -96,22 +87,8 @@ blockquote p{
|
|||
Header and shoulders
|
||||
*/
|
||||
|
||||
#topSection {
|
||||
margin: 0 auto;
|
||||
width: 1000px;
|
||||
position : relative;
|
||||
}
|
||||
|
||||
#topSection .leftnav{
|
||||
width : 286px;
|
||||
}
|
||||
|
||||
#topSection .dropdown {
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
#topSection .versions {
|
||||
margin-right: 0;
|
||||
ul.topLinks {
|
||||
left: 290px;
|
||||
}
|
||||
|
||||
.small_win #topSection {
|
||||
|
|
@ -149,30 +126,9 @@ a.brand {
|
|||
|
||||
.ace_logo {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
top: 45px;
|
||||
z-index: 20000;
|
||||
left: 400px;
|
||||
}
|
||||
|
||||
.masthead {
|
||||
background: #000000 url(../images/header_back.png) repeat-x 0 bottom;
|
||||
background-position-y: 70px;
|
||||
}
|
||||
.masthead .container {
|
||||
width: 680px;
|
||||
padding-left: 60px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.jumbotron {
|
||||
min-width: 1000px;
|
||||
position: relative;
|
||||
height: 200px;
|
||||
top: -36px;
|
||||
}
|
||||
|
||||
.jumbotron .inner {
|
||||
padding: 45px 0;
|
||||
padding-top: 75px;
|
||||
left: 210px;
|
||||
}
|
||||
|
||||
.c9-sponsor {
|
||||
|
|
@ -198,6 +154,12 @@ a.brand {
|
|||
text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
|
||||
}
|
||||
|
||||
.headerTitle {
|
||||
position: relative;
|
||||
top: 100px;
|
||||
left: 250px;
|
||||
}
|
||||
|
||||
/*
|
||||
Menu venue
|
||||
*/
|
||||
|
|
@ -225,7 +187,7 @@ ul.menu {
|
|||
|
||||
/* need specificity to "beat" the above colors */
|
||||
.menu li .menu-item a.currentItem, .menuTwo li .menu-item {
|
||||
color: #618100;
|
||||
color: #0072bc;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -383,6 +345,11 @@ ul.menu {
|
|||
.tabs a.menu:after, .tabs .dropdown-toggle:after {
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.dropdown .caret {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
/*.backToMDN {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
|
|
@ -528,12 +495,26 @@ ul.tabs .double ul, ul.tabs .triple ul, ul.tabs .quad ul{
|
|||
Center content (the "real stuff")
|
||||
*/
|
||||
|
||||
.content .container {
|
||||
background: url(../images/sidebar-border.png) repeat-y 95px 0;
|
||||
padding-bottom : 50px;
|
||||
.content .row {
|
||||
width: 1000px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.container-fluid {
|
||||
border-top: 1px solid #fffffe;
|
||||
|
||||
.content .centerpiece {
|
||||
background: url(../images/sidebar_border.png) repeat-y 180px 0;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
header.filler {
|
||||
position: relative;
|
||||
background: #EDF5FA;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#container {
|
||||
background: #edf5fa url(../images/main_bg.png) 0 0 repeat;
|
||||
}
|
||||
/*
|
||||
.container-fluid .row-fluid {
|
||||
|
|
@ -542,6 +523,10 @@ ul.tabs .double ul, ul.tabs .triple ul, ul.tabs .quad ul{
|
|||
margin-right: auto;
|
||||
}*/
|
||||
|
||||
.sidebarContainer {
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
margin-top: 9px;
|
||||
/*background: url(../images/sidebar-border.png) repeat-y right 0;*/
|
||||
|
|
@ -556,26 +541,24 @@ ul.tabs .double ul, ul.tabs .triple ul, ul.tabs .quad ul{
|
|||
color: #404040;
|
||||
}
|
||||
|
||||
#sidebar #well
|
||||
|
||||
#content {
|
||||
#documentation {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
#content article.article {
|
||||
#documentation article.article {
|
||||
/* border-bottom: 1px solid #e9e9e9;*/
|
||||
border-top: 1px solid #e9e9e9;
|
||||
padding: 16px 10px 2px;
|
||||
}
|
||||
div#content article:last-child {
|
||||
div#documentation article:last-child {
|
||||
border-bottom: 1px solid #e9e9e9;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
#content article.article.methodToggleOpen {
|
||||
background: url(../images/method-bg.png) repeat 0 0;
|
||||
#documentation article.article.methodToggleOpen {
|
||||
background: url(../images/method_bg.png) repeat 0 0;
|
||||
margin : 0 0 10px 0;
|
||||
}
|
||||
#content article:first-child {
|
||||
#documentation article:first-child {
|
||||
border:none;
|
||||
}
|
||||
|
||||
|
|
@ -689,7 +672,11 @@ li.signature {
|
|||
cursor: pointer;
|
||||
}
|
||||
.signature-call a {
|
||||
color: #859c59;
|
||||
color: #8e487e;
|
||||
}
|
||||
|
||||
.sigClassName {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.eventObjName {
|
||||
|
|
@ -741,9 +728,6 @@ li.signature {
|
|||
.alias:hover, .related-to:hover {
|
||||
opacity: 0.8;
|
||||
cursor: pointer;
|
||||
}
|
||||
.memberContent {
|
||||
|
||||
}
|
||||
.memberContent .title {
|
||||
|
||||
|
|
@ -806,9 +790,12 @@ table td, .bordered-table th + th, .bordered-table td + td, .bordered-table th +
|
|||
.zebra-striped tbody tr:hover td, .zebra-striped tbody tr:hover th {
|
||||
}
|
||||
|
||||
.argument-list{
|
||||
.argument-list {
|
||||
margin-bottom : 13px;
|
||||
}
|
||||
.argName {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
table td{
|
||||
padding: 8px 10px 8px 10px;
|
||||
|
|
@ -816,15 +803,19 @@ table td{
|
|||
/*
|
||||
Everyday I'm togglin'
|
||||
*/
|
||||
#content h3 {
|
||||
.mainContent {
|
||||
padding-top: 10px;
|
||||
float: right
|
||||
}
|
||||
|
||||
#documentation h3 {
|
||||
font-size: 24px;
|
||||
margin-top: 5px;
|
||||
/* margin: 10px 0;*/
|
||||
}
|
||||
#content h3.methodToggle {
|
||||
#documentation h3.methodToggle {
|
||||
margin: 0;
|
||||
}
|
||||
#content h3.sectionHeader {
|
||||
#documentation h3.sectionHeader {
|
||||
margin: 10px 0 17px 0;
|
||||
line-height : 24px;
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
BIN
doc/resources/ace/skeleton/images/content_bg.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
doc/resources/ace/skeleton/images/content_top_bg.png
Normal file
|
After Width: | Height: | Size: 629 B |
BIN
doc/resources/ace/skeleton/images/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
BIN
doc/resources/ace/skeleton/images/method_bg.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 26 KiB |
BIN
doc/resources/ace/skeleton/images/sidebar_border.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
|
@ -48,6 +48,7 @@ $(function () {
|
|||
// init prettyprint
|
||||
$('pre > code').addClass('prettyprint');
|
||||
prettyPrint();
|
||||
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
|
|
@ -86,7 +87,7 @@ $(document).ready(function () {
|
|||
var $classContent = $(this).closest('.classContent');
|
||||
|
||||
$(this).scrollspy({
|
||||
min: $classContent.position().top - 55,
|
||||
min: $classContent.position().top,
|
||||
max: $classContent.position().top + $classContent.height(),
|
||||
onEnter: function (element, position) {
|
||||
var $pagination = $(element);
|
||||
|
|
@ -135,7 +136,7 @@ $(document).ready(function () {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('span.methodClicker, article.article, h3.methodClicker').each(function () {
|
||||
var a = $(this);
|
||||
var constructorPos = a.attr("id").indexOf("new ");
|
||||
|
|
|
|||
|
|
@ -10,17 +10,18 @@ include lib
|
|||
mixin head(title + " - " + fileName)
|
||||
|
||||
body
|
||||
|
||||
|
||||
mixin navBar
|
||||
|
||||
mixin header
|
||||
header.filler
|
||||
|
||||
.container-fluid
|
||||
.row-fluid
|
||||
.span2.sidebarContainer
|
||||
.container
|
||||
.content
|
||||
.row.centerpiece
|
||||
.span3.offset6.sidebarContainer
|
||||
#sidebar
|
||||
include ace_menu.jade
|
||||
.span10
|
||||
.span9.mainContent
|
||||
#documentation
|
||||
mixin api()
|
||||
|
||||
|
|
|
|||
|
|
@ -141,12 +141,7 @@ mixin article(obj, parents)
|
|||
-description = obj.description.substring(obj.short_description.length) // cut the short_desc out
|
||||
descArray = description.split("\n#### ")
|
||||
|
||||
if obj.arguments
|
||||
h4 Arguments
|
||||
!= argumentTable(obj.arguments, ["argument-list", "zebra-striped", "bordered-table"])
|
||||
|
||||
if descArray[0].length && descArray[0] !== '' && descArray[0] !== '\n'
|
||||
h4 Description
|
||||
mixin markdown(descArray[0])
|
||||
|
||||
if obj.bound && ~obj.bound.indexOf('#')
|
||||
|
|
@ -160,15 +155,14 @@ mixin article(obj, parents)
|
|||
!= link(obj.bound, ['link-short'], 'generic method')
|
||||
|. If calling as generic, pass the instance in as the first argument.
|
||||
|
||||
- var r; // Probably inefficient; we want the Returns section under the Arguments, no matter where in source it's defined
|
||||
- for (var a = 1; a < descArray.length; a++)
|
||||
if (descArray[a].indexOf("Returns") >= 0)
|
||||
mixin markdown("\n#### " + descArray[a])
|
||||
r = a
|
||||
if obj.arguments
|
||||
h4 Arguments
|
||||
!= argumentTable(obj.arguments, ["argument-list", "table", "table-striped", "table-bordered"])
|
||||
|
||||
- for (var a = 1; a < descArray.length; a++)
|
||||
if (a != r)
|
||||
mixin markdown("\n#### " + descArray[a])
|
||||
|
||||
if obj.retDesc
|
||||
h4 Returns
|
||||
!= returnTable(obj.retDesc, ["return-list", "table", "table-striped", "table-bordered"])
|
||||
|
||||
//- children
|
||||
for child in obj.children.filter(function(x){return x.type === 'section'})
|
||||
|
|
|
|||
|
|
@ -36,25 +36,20 @@ mixin head(guideTitle, additionalCSS)
|
|||
script(src="#{dirPrefix}resources/javascripts/jquery.collapse.js")
|
||||
script(src="#{dirPrefix}resources/javascripts/jquery.cookie.js")
|
||||
script(src="#{dirPrefix}resources/javascripts/bootstrap-dropdown.js")
|
||||
script(src="#{dirPrefix}resources/javascripts/jquery-scrollspy.js")
|
||||
script(script src="#{dirPrefix}resources/javascripts/prettify-extension.js")
|
||||
|
||||
mixin navBar
|
||||
div.navbar.navbar-fixed-top
|
||||
div.navbar-inner
|
||||
div.container
|
||||
ul.nav.topLinks
|
||||
li#ace_site
|
||||
a(href='http://ace.ajax.org') Ace
|
||||
li#ace_api.active
|
||||
a(href='http://ace.ajax.org/api') Ace API Reference
|
||||
form(id='searchbox', action='', class='navbar-search pull-right')
|
||||
input(class='span3', name='query', type='text', placeholder="Search Documentation", title="Search across all the documentation")
|
||||
|
||||
mixin header
|
||||
header.jumbotron.masthead#overview
|
||||
div.ace_logo
|
||||
a(href="http://ace.ajax.org")
|
||||
img(src="#{dirPrefix}resources/images/ace_logo.png", alt="Ace Logo")
|
||||
.container-fluid
|
||||
.row-fluid
|
||||
.span2
|
||||
|
||||
.span10
|
||||
h1 Ace API Reference
|
||||
input(class='search-query span3', name='query', type='text', placeholder="Search", title="Search across all the documentation")
|
||||
|
||||
mixin footer
|
||||
footer#footer
|
||||
|
|
@ -67,7 +62,7 @@ mixin endingScripts
|
|||
<script defer src="#{dirPrefix}resources/javascripts/plugins.js"></script>
|
||||
<script defer src="#{dirPrefix}resources/javascripts/prettify.js"></script>
|
||||
<script defer src="#{dirPrefix}resources/javascripts/prettify-extension.js"></script>
|
||||
<script defer src="#{dirPrefix}resources/javascripts/script.js"></script>
|
||||
<script defer src="#{dirPrefix}resources/javascripts/ux.js"></script>
|
||||
<script defer src="#{dirPrefix}resources/javascripts/disqus-ext.js"></script>
|
||||
<script defer src="#{dirPrefix}resources/javascripts/ga.js"></script>
|
||||
//-<script defer src="tree.js"></script>
|
||||
|
|
@ -84,26 +79,7 @@ mixin identifyBuild(tree, type)
|
|||
-dirPrefix = './'
|
||||
|
||||
mixin markdown(text, inline)
|
||||
html = markdown(text, inline)
|
||||
!= restoreNotes(html)
|
||||
|
||||
-function restoreNotes(html)
|
||||
-var noteORegex = new RegExp('<note>', "ig")
|
||||
-var noteCRegex = new RegExp('</note>', "ig")
|
||||
-var warningORegex = new RegExp('<warning>', "ig")
|
||||
-var warningCRegex = new RegExp('</warning>', "ig")
|
||||
|
||||
if (html.match(noteORegex))
|
||||
-html = html.replace(noteORegex, "<div class='alert-message block-message warning'>")
|
||||
if (html.match(warningORegex))
|
||||
-html = html.replace(warningORegex, "<div class='alert-message block-message error'>")
|
||||
|
||||
if (html.match(noteCRegex))
|
||||
-html = html.replace(noteCRegex, "</div>")
|
||||
if (html.match(warningCRegex))
|
||||
-html = html.replace(warningCRegex, "</div>")
|
||||
|
||||
!= html
|
||||
!= markdown(text, inline)
|
||||
|
||||
mixin formatGHHref(url, type)
|
||||
url = url.substring(url.indexOf("src/") + 4)
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Anchor.setPosition(row, column, noClip) -> Void
|
||||
* Anchor.setPosition(row, column, noClip)
|
||||
* - row (Number): The row index to move the anchor to
|
||||
* - column (Number): The column index to move the anchor to
|
||||
* - noClip (Boolean): Identifies if you want the position to be clipped
|
||||
|
|
@ -219,7 +219,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* Anchor.clipPositionToDocument(row, column) -> Void
|
||||
* Anchor.clipPositionToDocument(row, column)
|
||||
* - row (Number): The row index to clip the anchor to
|
||||
* - column (Number): The column index to clip the anchor to
|
||||
*
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
|||
oop.implement(this, EventEmitter);
|
||||
|
||||
/**
|
||||
* BackgroundTokenizer.setTokenizer(tokenizer) -> Void
|
||||
* BackgroundTokenizer.setTokenizer(tokenizer)
|
||||
* - tokenizer (Tokenizer): The new tokenizer to use
|
||||
*
|
||||
* Sets a new tokenizer for this object.
|
||||
|
|
@ -115,7 +115,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
|||
};
|
||||
|
||||
/**
|
||||
* BackgroundTokenizer.setDocument(doc) -> Void
|
||||
* BackgroundTokenizer.setDocument(doc)
|
||||
* - doc (Document): The new document to associate with
|
||||
*
|
||||
* Sets a new document to associate with this object.
|
||||
|
|
@ -130,7 +130,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
|||
};
|
||||
|
||||
/**
|
||||
* BackgroundTokenizer.fireUpdateEvent(firstRow, lastRow) -> Void
|
||||
* BackgroundTokenizer.fireUpdateEvent(firstRow, lastRow)
|
||||
* - firstRow (Number): The starting row region
|
||||
* - lastRow (Number): The final row region
|
||||
*
|
||||
|
|
@ -147,7 +147,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
|||
};
|
||||
|
||||
/**
|
||||
* BackgroundTokenizer.start(startRow) -> Void
|
||||
* BackgroundTokenizer.start(startRow)
|
||||
* - startRow (Number): The row to start at
|
||||
*
|
||||
* Starts tokenizing at the row indicated.
|
||||
|
|
@ -167,7 +167,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
|
|||
};
|
||||
|
||||
/**
|
||||
* BackgroundTokenizer.stop() -> Void
|
||||
* BackgroundTokenizer.stop()
|
||||
*
|
||||
* Stops tokenizing.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ var Document = function(text) {
|
|||
/**
|
||||
* Document.getAllLines() -> Array
|
||||
*
|
||||
* Returns all lines in the document as string array. <Warning>The caller should not modify this array!</Warning>
|
||||
* Returns all lines in the document as string array. Warning: The caller should not modify this array!
|
||||
**/
|
||||
this.getAllLines = function() {
|
||||
return this.getLines(0, this.getLength());
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ var EditSession = function(text, mode) {
|
|||
oop.implement(this, EventEmitter);
|
||||
|
||||
/**
|
||||
* EditSession.setDocument(doc) -> Void
|
||||
* EditSession.setDocument(doc)
|
||||
* - doc (Document): The new `Document` to use
|
||||
*
|
||||
* Sets the `EditSession` to point to a new `Document`. If a `BackgroundTokenizer` exists, it also points to `doc`.
|
||||
|
|
@ -136,7 +136,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.$resetRowCache(row) -> Void
|
||||
* EditSession.$resetRowCache(row)
|
||||
* - row (Number): The row to work with
|
||||
*
|
||||
*
|
||||
|
|
@ -157,7 +157,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession@onChangeFold(e) -> Void
|
||||
* EditSession@onChangeFold(e)
|
||||
*
|
||||
* Emitted when a code fold changes its state.
|
||||
*
|
||||
|
|
@ -168,7 +168,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession@onChange(e) -> Void
|
||||
* EditSession@onChange(e)
|
||||
*
|
||||
* Emitted when the document changes.
|
||||
**/
|
||||
|
|
@ -196,7 +196,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.setValue(text) -> Void
|
||||
* EditSession.setValue(text)
|
||||
* - text (String): The new text to place
|
||||
*
|
||||
* Sets the session text.
|
||||
|
|
@ -292,7 +292,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.setUndoManager(undoManager) -> Void
|
||||
* EditSession.setUndoManager(undoManager)
|
||||
* - undoManager (UndoManager): The new undo manager
|
||||
*
|
||||
* Sets the undo manager.
|
||||
|
|
@ -310,7 +310,7 @@ var EditSession = function(text, mode) {
|
|||
if (undoManager) {
|
||||
var self = this;
|
||||
/** internal, hide
|
||||
* EditSession.$syncInformUndoManager() -> Void
|
||||
* EditSession.$syncInformUndoManager()
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
|
@ -377,7 +377,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
this.$useSoftTabs = true;
|
||||
/**
|
||||
* EditSession.setUseSoftTabs(useSoftTabs) -> Void
|
||||
* EditSession.setUseSoftTabs(useSoftTabs)
|
||||
* - useSoftTabs (Boolean): Value indicating whether or not to use soft tabs
|
||||
*
|
||||
* Pass `true` to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character (`'\t'`).
|
||||
|
|
@ -401,7 +401,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
this.$tabSize = 4;
|
||||
/**
|
||||
* EditSession.setTabSize(tabSize) -> Void
|
||||
* EditSession.setTabSize(tabSize)
|
||||
* - tabSize (Number): The new tab size
|
||||
*
|
||||
* Set the number of spaces that define a soft tab; for example, passing in `4` transforms the soft tabs to be equivalent to four spaces. This function also emits the `changeTabSize` event.
|
||||
|
|
@ -435,7 +435,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
this.$overwrite = false;
|
||||
/**
|
||||
* EditSession.setOverwrite(overwrite) -> Void
|
||||
* EditSession.setOverwrite(overwrite)
|
||||
* - overwrite (Boolean): Defines wheter or not to set overwrites
|
||||
*
|
||||
* Pass in `true` to enable overwrites in your session, or `false` to disable. If overwrites is enabled, any text you enter will type over any text after it. If the value of `overwrite` changes, this function also emites the `changeOverwrite` event.
|
||||
|
|
@ -458,7 +458,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.toggleOverwrite() -> Void
|
||||
* EditSession.toggleOverwrite()
|
||||
*
|
||||
* Sets the value of overwrite to the opposite of whatever it currently is.
|
||||
**/
|
||||
|
|
@ -476,7 +476,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.setBreakpoints(rows) -> Void
|
||||
* EditSession.setBreakpoints(rows)
|
||||
* - rows (Array): An array of row indicies
|
||||
*
|
||||
* Sets a breakpoint on every row number given by `rows`. This function also emites the `'changeBreakpoint'` event.
|
||||
|
|
@ -491,7 +491,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.clearBreakpoints() -> Void
|
||||
* EditSession.clearBreakpoints()
|
||||
*
|
||||
* Removes all breakpoints on the rows. This function also emites the `'changeBreakpoint'` event.
|
||||
**/
|
||||
|
|
@ -501,7 +501,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.setBreakpoint(row) -> Void
|
||||
* EditSession.setBreakpoint(row)
|
||||
* - row (Number): A row index
|
||||
*
|
||||
* Sets a breakpoint on the row number given by `rows`. This function also emites the `'changeBreakpoint'` event.
|
||||
|
|
@ -512,7 +512,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.clearBreakpoint(row) -> Void
|
||||
* EditSession.clearBreakpoint(row)
|
||||
* - row (Number): A row index
|
||||
*
|
||||
* Removes a breakpoint on the row number given by `rows`. This function also emites the `'changeBreakpoint'` event.
|
||||
|
|
@ -555,7 +555,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.removeMarker(markerId) -> Void
|
||||
* EditSession.removeMarker(markerId)
|
||||
* - markerId (Number): A number representing a marker
|
||||
*
|
||||
* Removes the marker with the specified ID. If this marker was in front, the `'changeFrontMarker'` event is emitted. If the marker was in the back, the `'changeBackMarker'` event is emitted.
|
||||
|
|
@ -594,7 +594,7 @@ var EditSession = function(text, mode) {
|
|||
* }
|
||||
*/
|
||||
/**
|
||||
* EditSession.setAnnotations(annotations) -> Void
|
||||
* EditSession.setAnnotations(annotations)
|
||||
* - annotations (Array): A list of annotations
|
||||
*
|
||||
* Sets annotations for the `EditSession`. This functions emits the `'changeAnnotation'` event.
|
||||
|
|
@ -622,7 +622,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.clearAnnotations() -> Void
|
||||
* EditSession.clearAnnotations()
|
||||
*
|
||||
* Clears all the annotations for this session. This function also triggers the `'changeAnnotation'` event.
|
||||
**/
|
||||
|
|
@ -632,7 +632,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.$detectNewLine(text) -> Void
|
||||
* EditSession.$detectNewLine(text)
|
||||
* - text (String): A block of text
|
||||
*
|
||||
* If `text` contains either the newline (`\n`) or carriage-return ('\r') characters, `$autoNewLine` stores that value.
|
||||
|
|
@ -704,7 +704,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** related to: Document.setNewLineMode
|
||||
* EditSession.setNewLineMode(newLineMode) -> Void
|
||||
* EditSession.setNewLineMode(newLineMode)
|
||||
* - newLineMode (String): {:Document.setNewLineMode.param}
|
||||
*
|
||||
* {:Document.setNewLineMode.desc}
|
||||
|
|
@ -725,7 +725,7 @@ var EditSession = function(text, mode) {
|
|||
this.$useWorker = true;
|
||||
|
||||
/**
|
||||
* EditSession.setUseWorker(useWorker) -> Void
|
||||
* EditSession.setUseWorker(useWorker)
|
||||
* - useWorker (Boolean): Set to `true` to use a worker
|
||||
*
|
||||
* Identifies if you want to use a worker for the `EditSession`.
|
||||
|
|
@ -752,7 +752,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession@onReloadTokenizer(e) -> Void
|
||||
* EditSession@onReloadTokenizer(e)
|
||||
*
|
||||
* Reloads all the tokens on the current session. This function calls [[BackgroundTokenizer.start `BackgroundTokenizer.start ()`]] to all the rows; it also emits the `'tokenizerUpdate'` event.
|
||||
**/
|
||||
|
|
@ -804,7 +804,7 @@ var EditSession = function(text, mode) {
|
|||
this.$mode = null;
|
||||
this.$origMode = null;
|
||||
/**
|
||||
* EditSession.setMode(mode) -> Void
|
||||
* EditSession.setMode(mode)
|
||||
* - mode (TextMode): Set a new text mode
|
||||
*
|
||||
* Sets a new text mode for the `EditSession`. This method also emits the `'changeMode'` event. If a [[BackgroundTokenizer `BackgroundTokenizer`]] is set, the `'tokenizerUpdate'` event is also emitted.
|
||||
|
|
@ -863,7 +863,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.stopWorker() -> Void
|
||||
* EditSession.stopWorker()
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
|
@ -875,7 +875,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.$startWorker() -> Void
|
||||
* EditSession.$startWorker()
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
|
@ -904,7 +904,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
this.$scrollTop = 0;
|
||||
/**
|
||||
* EditSession.setScrollTop(scrollTop) -> Void
|
||||
* EditSession.setScrollTop(scrollTop)
|
||||
* - scrollTop (Number): The new scroll top value
|
||||
*
|
||||
* This function sets the scroll top value. It also emits the `'changeScrollTop'` event.
|
||||
|
|
@ -929,7 +929,7 @@ var EditSession = function(text, mode) {
|
|||
|
||||
this.$scrollLeft = 0;
|
||||
/**
|
||||
* EditSession.setScrollLeft(scrollLeft) -> Void
|
||||
* EditSession.setScrollLeft(scrollLeft)
|
||||
*
|
||||
* [Sets the value of the distance between the left of the editor and the leftmost part of the visible content.]{: #EditSession.setScrollLeft}
|
||||
**/
|
||||
|
|
@ -1145,7 +1145,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.setUndoSelect(enable) -> Void
|
||||
* EditSession.setUndoSelect(enable)
|
||||
* - enable (Boolean): If `true`, selects the range of the reinserted change
|
||||
*
|
||||
* ENables or disables highlighting of the range where an undo occured.
|
||||
|
|
@ -1281,7 +1281,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.indentRows(startRow, endRow, indentString) -> Void
|
||||
* EditSession.indentRows(startRow, endRow, indentString)
|
||||
* - startRow (Number): Starting row
|
||||
* - endRow (Number): Ending row
|
||||
* - indentString (String): The indent token
|
||||
|
|
@ -1298,7 +1298,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.outdentRows(range) -> Void
|
||||
* EditSession.outdentRows(range)
|
||||
* - range (Range): A range of rows
|
||||
*
|
||||
* Outdents all the rows defined by the `start` and `end` properties of `range`.
|
||||
|
|
@ -1458,7 +1458,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/**
|
||||
* EditSession.setUseWrapMode(useWrapMode) -> Void
|
||||
* EditSession.setUseWrapMode(useWrapMode)
|
||||
* - useWrapMode (Boolean): Enable (or disable) wrap mode
|
||||
*
|
||||
* Sets whether or not line wrapping is enabled. If `useWrapMode` is different than the current value, the `'changeWrapMode'` event is emitted.
|
||||
|
|
@ -1497,7 +1497,7 @@ var EditSession = function(text, mode) {
|
|||
// in that direction. Or set both parameters to the same number to pin
|
||||
// the limit to that value.
|
||||
/**
|
||||
* EditSession.setWrapLimitRange(min, max) -> Void
|
||||
* EditSession.setWrapLimitRange(min, max)
|
||||
* - min (Number): The minimum wrap value (the left side wrap)
|
||||
* - max (Number): The maximum wrap value (the right side wrap)
|
||||
*
|
||||
|
|
@ -1535,7 +1535,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.$constrainWrapLimit(wrapLimit) -> Void
|
||||
* EditSession.$constrainWrapLimit(wrapLimit)
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
|
@ -1578,7 +1578,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.$updateInternalDataOnChange() -> Void
|
||||
* EditSession.$updateInternalDataOnChange()
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
|
@ -1698,7 +1698,7 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
/** internal, hide
|
||||
* EditSession.$updateWrapData(firstRow, lastRow) -> Void
|
||||
* EditSession.$updateWrapData(firstRow, lastRow)
|
||||
*
|
||||
*
|
||||
**/
|
||||
|
|
|
|||