Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
ace
Ace
EditSession
Interface EditSession
interface
EditSession
{
curOp
?:
{
command
?:
{
name
?:
string
;
}
;
docChanged
?:
boolean
;
selectionChanged
?:
boolean
;
}
;
doc
:
Ace
.
Document
;
selection
:
Ace
.
Selection
;
widgetManager
:
WidgetManager
;
addDynamicMarker
(
marker
,
inFront
)
:
MarkerLike
;
addEventListener
(
name
,
callback
,
capturing
?
)
:
void
;
addFold
(
placeholder
,
range
?
)
:
Ace
.
Fold
;
addFolds
(
folds
)
:
void
;
addGutterDecoration
(
row
,
className
)
:
void
;
addMarker
(
range
,
className
,
type
,
inFront
?
)
:
number
;
adjustWrapLimit
(
desiredLimit
)
:
boolean
;
clearAnnotations
(
)
:
void
;
clearBreakpoint
(
row
)
:
void
;
clearBreakpoints
(
)
:
void
;
destroy
(
)
:
void
;
documentToScreenColumn
(
row
,
docColumn
)
:
number
;
documentToScreenPosition
(
docRow
,
docColumn
)
:
Ace
.
Position
;
documentToScreenPosition
(
position
)
:
Ace
.
Position
;
documentToScreenRow
(
docRow
,
docColumn
)
:
number
;
duplicateLines
(
firstRow
,
lastRow
)
:
void
;
endOperation
(
)
:
void
;
expandFold
(
fold
)
:
void
;
expandFolds
(
folds
)
:
void
;
foldAll
(
startRow
?
,
endRow
?
,
depth
?
)
:
void
;
getAWordRange
(
row
,
column
)
:
Ace
.
Range
;
getAllFolds
(
)
:
Ace
.
Fold
[]
;
getAnnotations
(
)
:
Annotation
[]
;
getBreakpoints
(
)
:
string
[]
;
getCommentFoldRange
(
row
,
column
,
dir
)
:
Ace
.
Range
;
getDisplayLine
(
row
,
endColumn
,
startRow
,
startColumn
)
:
string
;
getDocument
(
)
:
Ace
.
Document
;
getDocumentLastRowColumn
(
docRow
,
docColumn
)
:
number
;
getFoldAt
(
row
,
column
,
side
)
:
Ace
.
Fold
;
getFoldDisplayLine
(
foldLine
,
endRow
,
endColumn
,
startRow
,
startColumn
)
:
string
;
getFoldLine
(
docRow
,
startFoldLine
?
)
:
Ace
.
FoldLine
;
getFoldRowEnd
(
docRow
,
startFoldRow
?
)
:
number
;
getFoldRowStart
(
docRow
,
startFoldRow
?
)
:
number
;
getFoldStringAt
(
row
,
column
,
trim
?
,
foldLine
?
)
:
string
;
getFoldedRowCount
(
first
,
last
)
:
number
;
getFoldsInRange
(
range
)
:
Ace
.
Fold
[]
;
getFoldsInRangeList
(
ranges
)
:
Ace
.
Fold
[]
;
getLength
(
)
:
number
;
getLine
(
row
)
:
string
;
getLineWidgetMaxWidth
(
)
:
number
;
getLines
(
firstRow
,
lastRow
)
:
string
[]
;
getMarkers
(
inFront
?
)
:
{
[
id
:
number
]
:
MarkerLike
;
}
;
getMode
(
)
:
Ace
.
SyntaxMode
;
getNavigateWithinSoftTabs
(
)
:
boolean
;
getNewLineMode
(
)
:
Ace
.
NewLineMode
;
getNextFoldLine
(
docRow
,
startFoldLine
?
)
:
Ace
.
FoldLine
;
getOption
<
T
>
(
name
)
:
EditSessionOptions
[
T
]
;
getOptions
(
optionNames
?
)
:
{
[
key
:
string
]
:
any
;
}
;
getOverwrite
(
)
:
boolean
;
getParentFoldRangeData
(
row
,
ignoreCurrent
?
)
:
{
firstRange
:
Ace
.
Range
;
range
?:
Ace
.
Range
;
}
;
getPrecedingCharacter
(
)
:
string
;
getRowLineCount
(
row
)
:
number
;
getRowSplitData
(
row
)
:
string
;
getRowWrapIndent
(
screenRow
)
:
number
;
getScreenLastRowColumn
(
screenRow
)
:
number
;
getScreenLength
(
)
:
number
;
getScreenTabSize
(
screenColumn
)
:
number
;
getScreenWidth
(
)
:
number
;
getScrollLeft
(
)
:
number
;
getScrollTop
(
)
:
number
;
getSelection
(
)
:
Ace
.
Selection
;
getState
(
row
)
:
string
;
getTabSize
(
)
:
number
;
getTabString
(
)
:
string
;
getTextRange
(
range
)
:
string
;
getTokenAt
(
row
,
column
)
:
Token
;
getTokens
(
row
)
:
Token
[]
;
getUndoManager
(
)
:
Ace
.
UndoManager
;
getUseSoftTabs
(
)
:
boolean
;
getUseWorker
(
)
:
boolean
;
getUseWrapMode
(
)
:
boolean
;
getValue
(
)
:
string
;
getWordRange
(
row
,
column
)
:
Ace
.
Range
;
getWrapLimit
(
)
:
number
;
getWrapLimitRange
(
)
:
{
max
:
number
;
min
:
number
;
}
;
getdocumentLastRowColumnPosition
(
docRow
,
docColumn
)
:
Ace
.
Position
;
highlight
(
re
)
:
void
;
highlightLines
(
startRow
,
endRow
,
className
,
inFront
?
)
:
Ace
.
Range
;
indentRows
(
startRow
,
endRow
,
indentString
)
:
void
;
insert
(
position
,
text
)
:
void
;
isRowFolded
(
docRow
,
startFoldRow
?
)
:
boolean
;
isTabStop
(
position
)
:
boolean
;
markUndoGroup
(
)
:
void
;
moveLinesDown
(
firstRow
,
lastRow
)
:
void
;
moveLinesUp
(
firstRow
,
lastRow
)
:
void
;
moveText
(
fromRange
,
toPosition
,
copy
?
)
:
void
;
off
(
name
,
callback
)
:
void
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
on
(
name
,
callback
)
:
Function
;
once
(
name
,
callback
)
:
void
;
outdentRows
(
range
)
:
void
;
redoChanges
(
deltas
,
dontSelect
?
)
:
void
;
remove
(
range
)
:
void
;
removeAllListeners
(
name
?
)
:
void
;
removeDefaultHandler
(
name
,
callback
)
:
void
;
removeEventListener
(
name
,
callback
)
:
void
;
removeFold
(
fold
)
:
void
;
removeFolds
(
folds
)
:
void
;
removeFullLines
(
firstRow
,
lastRow
)
:
void
;
removeGutterDecoration
(
row
,
className
)
:
void
;
removeListener
(
name
,
callback
)
:
void
;
removeMarker
(
markerId
)
:
void
;
replace
(
range
,
text
)
:
void
;
resetCaches
(
)
:
void
;
screenToDocumentColumn
(
screenRow
,
screenColumn
)
:
number
;
screenToDocumentPosition
(
screenRow
,
screenColumn
,
offsetX
?
)
:
Ace
.
Position
;
screenToDocumentRow
(
screenRow
,
screenColumn
)
:
number
;
setAnnotations
(
annotations
)
:
void
;
setBreakpoint
(
row
,
className
)
:
void
;
setBreakpoints
(
rows
)
:
void
;
setDefaultHandler
(
name
,
callback
)
:
void
;
setDocument
(
doc
)
:
void
;
setFoldStyle
(
style
)
:
void
;
setMode
(
mode
,
callback
?
)
:
void
;
setNavigateWithinSoftTabs
(
navigateWithinSoftTabs
)
:
void
;
setNewLineMode
(
newLineMode
)
:
void
;
setOption
<
T
>
(
name
,
value
)
:
void
;
setOptions
(
optList
)
:
void
;
setOverwrite
(
overwrite
)
:
void
;
setScrollLeft
(
scrollLeft
)
:
void
;
setScrollTop
(
scrollTop
)
:
void
;
setTabSize
(
tabSize
)
:
void
;
setUndoManager
(
undoManager
)
:
void
;
setUndoSelect
(
enable
)
:
void
;
setUseSoftTabs
(
val
)
:
void
;
setUseWorker
(
useWorker
)
:
void
;
setUseWrapMode
(
useWrapMode
)
:
void
;
setValue
(
text
)
:
void
;
setWrapLimit
(
limit
)
:
void
;
setWrapLimitRange
(
min
,
max
)
:
void
;
startOperation
(
commandEvent
)
:
void
;
toJSON
(
)
:
Object
;
toggleFold
(
tryToUnfold
?
)
:
void
;
toggleFoldWidget
(
toggleParent
?
)
:
void
;
toggleOverwrite
(
)
:
void
;
undoChanges
(
deltas
,
dontSelect
?
)
:
void
;
unfold
(
location
,
expandInner
?
)
:
Ace
.
Fold
[]
;
updateFoldWidgets
(
delta
)
:
void
;
}
Hierarchy (
view full
)
Ace
.
EventEmitter
OptionsProvider
Ace
.
Folding
EditSession
Index
Properties
cur
Op?
doc
selection
widget
Manager
Methods
add
Dynamic
Marker
add
Event
Listener
add
Fold
add
Folds
add
Gutter
Decoration
add
Marker
adjust
Wrap
Limit
clear
Annotations
clear
Breakpoint
clear
Breakpoints
destroy
document
To
Screen
Column
document
To
Screen
Position
document
To
Screen
Row
duplicate
Lines
end
Operation
expand
Fold
expand
Folds
fold
All
getAWord
Range
get
All
Folds
get
Annotations
get
Breakpoints
get
Comment
Fold
Range
get
Display
Line
get
Document
get
Document
Last
Row
Column
get
Fold
At
get
Fold
Display
Line
get
Fold
Line
get
Fold
Row
End
get
Fold
Row
Start
get
Fold
String
At
get
Folded
Row
Count
get
Folds
In
Range
get
Folds
In
Range
List
get
Length
get
Line
get
Line
Widget
Max
Width
get
Lines
get
Markers
get
Mode
get
Navigate
Within
Soft
Tabs
get
New
Line
Mode
get
Next
Fold
Line
get
Option
get
Options
get
Overwrite
get
Parent
Fold
Range
Data
get
Preceding
Character
get
Row
Line
Count
get
Row
Split
Data
get
Row
Wrap
Indent
get
Screen
Last
Row
Column
get
Screen
Length
get
Screen
Tab
Size
get
Screen
Width
get
Scroll
Left
get
Scroll
Top
get
Selection
get
State
get
Tab
Size
get
Tab
String
get
Text
Range
get
Token
At
get
Tokens
get
Undo
Manager
get
Use
Soft
Tabs
get
Use
Worker
get
Use
Wrap
Mode
get
Value
get
Word
Range
get
Wrap
Limit
get
Wrap
Limit
Range
getdocument
Last
Row
Column
Position
highlight
highlight
Lines
indent
Rows
insert
is
Row
Folded
is
Tab
Stop
mark
Undo
Group
move
Lines
Down
move
Lines
Up
move
Text
off
on
once
outdent
Rows
redo
Changes
remove
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Fold
remove
Folds
remove
Full
Lines
remove
Gutter
Decoration
remove
Listener
remove
Marker
replace
reset
Caches
screen
To
Document
Column
screen
To
Document
Position
screen
To
Document
Row
set
Annotations
set
Breakpoint
set
Breakpoints
set
Default
Handler
set
Document
set
Fold
Style
set
Mode
set
Navigate
Within
Soft
Tabs
set
New
Line
Mode
set
Option
set
Options
set
Overwrite
set
Scroll
Left
set
Scroll
Top
set
Tab
Size
set
Undo
Manager
set
Undo
Select
set
Use
Soft
Tabs
set
Use
Worker
set
Use
Wrap
Mode
set
Value
set
Wrap
Limit
set
Wrap
Limit
Range
start
Operation
toJSON
toggle
Fold
toggle
Fold
Widget
toggle
Overwrite
undo
Changes
unfold
update
Fold
Widgets
Properties
Optional
cur
Op
cur
Op
?:
{
command
?:
{
name
?:
string
;
}
;
docChanged
?:
boolean
;
selectionChanged
?:
boolean
;
}
Type declaration
Optional
command
?:
{
name
?:
string
;
}
Optional
name
?:
string
Optional
doc
Changed
?:
boolean
Optional
selection
Changed
?:
boolean
Readonly
doc
doc
:
Ace
.
Document
selection
selection
:
Ace
.
Selection
widget
Manager
widget
Manager
:
WidgetManager
Methods
add
Dynamic
Marker
add
Dynamic
Marker
(
marker
,
inFront
)
:
MarkerLike
Parameters
marker
:
MarkerLike
inFront
:
boolean
Returns
MarkerLike
add
Event
Listener
add
Event
Listener
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
add
Fold
add
Fold
(
placeholder
,
range
?
)
:
Ace
.
Fold
Parameters
placeholder
:
string
|
Ace
.
Fold
Optional
range
:
Ace
.
Range
Returns
Ace
.
Fold
add
Folds
add
Folds
(
folds
)
:
void
Parameters
folds
:
Ace
.
Fold
[]
Returns
void
add
Gutter
Decoration
add
Gutter
Decoration
(
row
,
className
)
:
void
Parameters
row
:
number
className
:
string
Returns
void
add
Marker
add
Marker
(
range
,
className
,
type
,
inFront
?
)
:
number
Parameters
range
:
Ace
.
Range
className
:
string
type
:
"text"
|
"fullLine"
|
"screenLine"
|
MarkerRenderer
Optional
inFront
:
boolean
Returns
number
adjust
Wrap
Limit
adjust
Wrap
Limit
(
desiredLimit
)
:
boolean
Parameters
desiredLimit
:
number
Returns
boolean
clear
Annotations
clear
Annotations
(
)
:
void
Returns
void
clear
Breakpoint
clear
Breakpoint
(
row
)
:
void
Parameters
row
:
number
Returns
void
clear
Breakpoints
clear
Breakpoints
(
)
:
void
Returns
void
destroy
destroy
(
)
:
void
Returns
void
document
To
Screen
Column
document
To
Screen
Column
(
row
,
docColumn
)
:
number
Parameters
row
:
number
docColumn
:
number
Returns
number
document
To
Screen
Position
document
To
Screen
Position
(
docRow
,
docColumn
)
:
Ace
.
Position
Parameters
docRow
:
number
docColumn
:
number
Returns
Ace
.
Position
document
To
Screen
Position
(
position
)
:
Ace
.
Position
Parameters
position
:
Ace
.
Position
Returns
Ace
.
Position
document
To
Screen
Row
document
To
Screen
Row
(
docRow
,
docColumn
)
:
number
Parameters
docRow
:
number
docColumn
:
number
Returns
number
duplicate
Lines
duplicate
Lines
(
firstRow
,
lastRow
)
:
void
Parameters
firstRow
:
number
lastRow
:
number
Returns
void
end
Operation
end
Operation
(
)
:
void
Returns
void
expand
Fold
expand
Fold
(
fold
)
:
void
Parameters
fold
:
Ace
.
Fold
Returns
void
expand
Folds
expand
Folds
(
folds
)
:
void
Parameters
folds
:
Ace
.
Fold
[]
Returns
void
fold
All
fold
All
(
startRow
?
,
endRow
?
,
depth
?
)
:
void
Parameters
Optional
startRow
:
number
Optional
endRow
:
number
Optional
depth
:
number
Returns
void
getAWord
Range
getAWord
Range
(
row
,
column
)
:
Ace
.
Range
Parameters
row
:
number
column
:
number
Returns
Ace
.
Range
get
All
Folds
get
All
Folds
(
)
:
Ace
.
Fold
[]
Returns
Ace
.
Fold
[]
get
Annotations
get
Annotations
(
)
:
Annotation
[]
Returns
Annotation
[]
get
Breakpoints
get
Breakpoints
(
)
:
string
[]
Returns
string
[]
get
Comment
Fold
Range
get
Comment
Fold
Range
(
row
,
column
,
dir
)
:
Ace
.
Range
Parameters
row
:
number
column
:
number
dir
:
number
Returns
Ace
.
Range
get
Display
Line
get
Display
Line
(
row
,
endColumn
,
startRow
,
startColumn
)
:
string
Parameters
row
:
number
endColumn
:
number
startRow
:
number
startColumn
:
number
Returns
string
get
Document
get
Document
(
)
:
Ace
.
Document
Returns
Ace
.
Document
get
Document
Last
Row
Column
get
Document
Last
Row
Column
(
docRow
,
docColumn
)
:
number
Parameters
docRow
:
number
docColumn
:
number
Returns
number
get
Fold
At
get
Fold
At
(
row
,
column
,
side
)
:
Ace
.
Fold
Parameters
row
:
number
column
:
number
side
:
number
Returns
Ace
.
Fold
get
Fold
Display
Line
get
Fold
Display
Line
(
foldLine
,
endRow
,
endColumn
,
startRow
,
startColumn
)
:
string
Parameters
foldLine
:
Ace
.
FoldLine
endRow
:
number
endColumn
:
number
startRow
:
number
startColumn
:
number
Returns
string
get
Fold
Line
get
Fold
Line
(
docRow
,
startFoldLine
?
)
:
Ace
.
FoldLine
Parameters
docRow
:
number
Optional
startFoldLine
:
Ace
.
FoldLine
Returns
Ace
.
FoldLine
get
Fold
Row
End
get
Fold
Row
End
(
docRow
,
startFoldRow
?
)
:
number
Parameters
docRow
:
number
Optional
startFoldRow
:
Ace
.
FoldLine
Returns
number
get
Fold
Row
Start
get
Fold
Row
Start
(
docRow
,
startFoldRow
?
)
:
number
Parameters
docRow
:
number
Optional
startFoldRow
:
Ace
.
FoldLine
Returns
number
get
Fold
String
At
get
Fold
String
At
(
row
,
column
,
trim
?
,
foldLine
?
)
:
string
Parameters
row
:
number
column
:
number
Optional
trim
:
number
Optional
foldLine
:
Ace
.
FoldLine
Returns
string
get
Folded
Row
Count
get
Folded
Row
Count
(
first
,
last
)
:
number
Parameters
first
:
number
last
:
number
Returns
number
get
Folds
In
Range
get
Folds
In
Range
(
range
)
:
Ace
.
Fold
[]
Parameters
range
:
Ace
.
Range
Returns
Ace
.
Fold
[]
get
Folds
In
Range
List
get
Folds
In
Range
List
(
ranges
)
:
Ace
.
Fold
[]
Parameters
ranges
:
Ace
.
Range
[]
Returns
Ace
.
Fold
[]
get
Length
get
Length
(
)
:
number
Returns
number
get
Line
get
Line
(
row
)
:
string
Parameters
row
:
number
Returns
string
get
Line
Widget
Max
Width
get
Line
Widget
Max
Width
(
)
:
number
Returns
number
get
Lines
get
Lines
(
firstRow
,
lastRow
)
:
string
[]
Parameters
firstRow
:
number
lastRow
:
number
Returns
string
[]
get
Markers
get
Markers
(
inFront
?
)
:
{
[
id
:
number
]
:
MarkerLike
;
}
Parameters
Optional
inFront
:
boolean
Returns
{
[
id
:
number
]
:
MarkerLike
;
}
[
id
:
number
]:
MarkerLike
get
Mode
get
Mode
(
)
:
Ace
.
SyntaxMode
Returns
Ace
.
SyntaxMode
get
Navigate
Within
Soft
Tabs
get
Navigate
Within
Soft
Tabs
(
)
:
boolean
Returns
boolean
get
New
Line
Mode
get
New
Line
Mode
(
)
:
Ace
.
NewLineMode
Returns
Ace
.
NewLineMode
get
Next
Fold
Line
get
Next
Fold
Line
(
docRow
,
startFoldLine
?
)
:
Ace
.
FoldLine
Parameters
docRow
:
number
Optional
startFoldLine
:
Ace
.
FoldLine
Returns
Ace
.
FoldLine
get
Option
get
Option
<
T
>
(
name
)
:
EditSessionOptions
[
T
]
Type Parameters
T
extends
keyof
EditSessionOptions
Parameters
name
:
T
Returns
EditSessionOptions
[
T
]
get
Options
get
Options
(
optionNames
?
)
:
{
[
key
:
string
]
:
any
;
}
Parameters
Optional
optionNames
:
string
[]
|
{
[
key
:
string
]
:
any
;
}
Returns
{
[
key
:
string
]
:
any
;
}
[
key
:
string
]:
any
get
Overwrite
get
Overwrite
(
)
:
boolean
Returns
boolean
get
Parent
Fold
Range
Data
get
Parent
Fold
Range
Data
(
row
,
ignoreCurrent
?
)
:
{
firstRange
:
Ace
.
Range
;
range
?:
Ace
.
Range
;
}
Parameters
row
:
number
Optional
ignoreCurrent
:
boolean
Returns
{
firstRange
:
Ace
.
Range
;
range
?:
Ace
.
Range
;
}
first
Range
:
Ace
.
Range
Optional
range
?:
Ace
.
Range
get
Preceding
Character
get
Preceding
Character
(
)
:
string
Returns
string
get
Row
Line
Count
get
Row
Line
Count
(
row
)
:
number
Parameters
row
:
number
Returns
number
get
Row
Split
Data
get
Row
Split
Data
(
row
)
:
string
Parameters
row
:
number
Returns
string
get
Row
Wrap
Indent
get
Row
Wrap
Indent
(
screenRow
)
:
number
Parameters
screenRow
:
number
Returns
number
get
Screen
Last
Row
Column
get
Screen
Last
Row
Column
(
screenRow
)
:
number
Parameters
screenRow
:
number
Returns
number
get
Screen
Length
get
Screen
Length
(
)
:
number
Returns
number
get
Screen
Tab
Size
get
Screen
Tab
Size
(
screenColumn
)
:
number
Parameters
screenColumn
:
number
Returns
number
get
Screen
Width
get
Screen
Width
(
)
:
number
Returns
number
get
Scroll
Left
get
Scroll
Left
(
)
:
number
Returns
number
get
Scroll
Top
get
Scroll
Top
(
)
:
number
Returns
number
get
Selection
get
Selection
(
)
:
Ace
.
Selection
Returns
Ace
.
Selection
get
State
get
State
(
row
)
:
string
Parameters
row
:
number
Returns
string
get
Tab
Size
get
Tab
Size
(
)
:
number
Returns
number
get
Tab
String
get
Tab
String
(
)
:
string
Returns
string
get
Text
Range
get
Text
Range
(
range
)
:
string
Parameters
range
:
Ace
.
Range
Returns
string
get
Token
At
get
Token
At
(
row
,
column
)
:
Token
Parameters
row
:
number
column
:
number
Returns
Token
get
Tokens
get
Tokens
(
row
)
:
Token
[]
Parameters
row
:
number
Returns
Token
[]
get
Undo
Manager
get
Undo
Manager
(
)
:
Ace
.
UndoManager
Returns
Ace
.
UndoManager
get
Use
Soft
Tabs
get
Use
Soft
Tabs
(
)
:
boolean
Returns
boolean
get
Use
Worker
get
Use
Worker
(
)
:
boolean
Returns
boolean
get
Use
Wrap
Mode
get
Use
Wrap
Mode
(
)
:
boolean
Returns
boolean
get
Value
get
Value
(
)
:
string
Returns
string
get
Word
Range
get
Word
Range
(
row
,
column
)
:
Ace
.
Range
Parameters
row
:
number
column
:
number
Returns
Ace
.
Range
get
Wrap
Limit
get
Wrap
Limit
(
)
:
number
Returns
number
get
Wrap
Limit
Range
get
Wrap
Limit
Range
(
)
:
{
max
:
number
;
min
:
number
;
}
Returns
{
max
:
number
;
min
:
number
;
}
max
:
number
min
:
number
getdocument
Last
Row
Column
Position
getdocument
Last
Row
Column
Position
(
docRow
,
docColumn
)
:
Ace
.
Position
Parameters
docRow
:
number
docColumn
:
number
Returns
Ace
.
Position
highlight
highlight
(
re
)
:
void
Parameters
re
:
RegExp
Returns
void
highlight
Lines
highlight
Lines
(
startRow
,
endRow
,
className
,
inFront
?
)
:
Ace
.
Range
Parameters
startRow
:
number
endRow
:
number
className
:
string
Optional
inFront
:
boolean
Returns
Ace
.
Range
indent
Rows
indent
Rows
(
startRow
,
endRow
,
indentString
)
:
void
Parameters
startRow
:
number
endRow
:
number
indentString
:
string
Returns
void
insert
insert
(
position
,
text
)
:
void
Parameters
position
:
Ace
.
Position
text
:
string
Returns
void
is
Row
Folded
is
Row
Folded
(
docRow
,
startFoldRow
?
)
:
boolean
Parameters
docRow
:
number
Optional
startFoldRow
:
Ace
.
FoldLine
Returns
boolean
is
Tab
Stop
is
Tab
Stop
(
position
)
:
boolean
Parameters
position
:
Ace
.
Position
Returns
boolean
mark
Undo
Group
mark
Undo
Group
(
)
:
void
Returns
void
move
Lines
Down
move
Lines
Down
(
firstRow
,
lastRow
)
:
void
Parameters
firstRow
:
number
lastRow
:
number
Returns
void
move
Lines
Up
move
Lines
Up
(
firstRow
,
lastRow
)
:
void
Parameters
firstRow
:
number
lastRow
:
number
Returns
void
move
Text
move
Text
(
fromRange
,
toPosition
,
copy
?
)
:
void
Parameters
fromRange
:
Ace
.
Range
toPosition
:
Ace
.
Position
Optional
copy
:
boolean
Returns
void
off
off
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
on
on
(
name
,
callback
)
:
Function
Parameters
name
:
"changeFold"
callback
:
(
(
obj
)
=>
void
)
(
obj
)
:
void
Parameters
obj
:
{
action
:
string
;
data
:
Ace
.
Fold
;
}
action
:
string
data
:
Ace
.
Fold
Returns
void
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"changeScrollLeft"
callback
:
(
(
scrollLeft
)
=>
void
)
(
scrollLeft
)
:
void
Parameters
scrollLeft
:
number
Returns
void
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"changeScrollTop"
callback
:
(
(
scrollTop
)
=>
void
)
(
scrollTop
)
:
void
Parameters
scrollTop
:
number
Returns
void
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"tokenizerUpdate"
callback
:
(
(
obj
)
=>
void
)
(
obj
)
:
void
Parameters
obj
:
{
data
:
{
first
:
number
;
last
:
number
;
}
;
}
data
:
{
first
:
number
;
last
:
number
;
}
first
:
number
last
:
number
Returns
void
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"change"
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"changeTabSize"
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
Function
on
(
name
,
callback
)
:
Function
Parameters
name
:
"beforeEndOperation"
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
Function
once
once
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
outdent
Rows
outdent
Rows
(
range
)
:
void
Parameters
range
:
Ace
.
Range
Returns
void
redo
Changes
redo
Changes
(
deltas
,
dontSelect
?
)
:
void
Parameters
deltas
:
Ace
.
Delta
[]
Optional
dontSelect
:
boolean
Returns
void
remove
remove
(
range
)
:
void
Parameters
range
:
Ace
.
Range
Returns
void
remove
All
Listeners
remove
All
Listeners
(
name
?
)
:
void
Parameters
Optional
name
:
string
Returns
void
remove
Default
Handler
remove
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Event
Listener
remove
Event
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Fold
remove
Fold
(
fold
)
:
void
Parameters
fold
:
Ace
.
Fold
Returns
void
remove
Folds
remove
Folds
(
folds
)
:
void
Parameters
folds
:
Ace
.
Fold
[]
Returns
void
remove
Full
Lines
remove
Full
Lines
(
firstRow
,
lastRow
)
:
void
Parameters
firstRow
:
number
lastRow
:
number
Returns
void
remove
Gutter
Decoration
remove
Gutter
Decoration
(
row
,
className
)
:
void
Parameters
row
:
number
className
:
string
Returns
void
remove
Listener
remove
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Marker
remove
Marker
(
markerId
)
:
void
Parameters
markerId
:
number
Returns
void
replace
replace
(
range
,
text
)
:
void
Parameters
range
:
Ace
.
Range
text
:
string
Returns
void
reset
Caches
reset
Caches
(
)
:
void
Returns
void
screen
To
Document
Column
screen
To
Document
Column
(
screenRow
,
screenColumn
)
:
number
Parameters
screenRow
:
number
screenColumn
:
number
Returns
number
screen
To
Document
Position
screen
To
Document
Position
(
screenRow
,
screenColumn
,
offsetX
?
)
:
Ace
.
Position
Parameters
screenRow
:
number
screenColumn
:
number
Optional
offsetX
:
number
Returns
Ace
.
Position
screen
To
Document
Row
screen
To
Document
Row
(
screenRow
,
screenColumn
)
:
number
Parameters
screenRow
:
number
screenColumn
:
number
Returns
number
set
Annotations
set
Annotations
(
annotations
)
:
void
Parameters
annotations
:
Annotation
[]
Returns
void
set
Breakpoint
set
Breakpoint
(
row
,
className
)
:
void
Parameters
row
:
number
className
:
string
Returns
void
set
Breakpoints
set
Breakpoints
(
rows
)
:
void
Parameters
rows
:
number
[]
Returns
void
set
Default
Handler
set
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
set
Document
set
Document
(
doc
)
:
void
Parameters
doc
:
Ace
.
Document
Returns
void
set
Fold
Style
set
Fold
Style
(
style
)
:
void
Parameters
style
:
string
Returns
void
set
Mode
set
Mode
(
mode
,
callback
?
)
:
void
Parameters
mode
:
string
|
Ace
.
SyntaxMode
Optional
callback
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
set
Navigate
Within
Soft
Tabs
set
Navigate
Within
Soft
Tabs
(
navigateWithinSoftTabs
)
:
void
Parameters
navigateWithinSoftTabs
:
boolean
Returns
void
set
New
Line
Mode
set
New
Line
Mode
(
newLineMode
)
:
void
Parameters
newLineMode
:
Ace
.
NewLineMode
Returns
void
set
Option
set
Option
<
T
>
(
name
,
value
)
:
void
Type Parameters
T
extends
keyof
EditSessionOptions
Parameters
name
:
T
value
:
EditSessionOptions
[
T
]
Returns
void
set
Options
set
Options
(
optList
)
:
void
Parameters
optList
:
{
[
key
:
string
]
:
any
;
}
[
key
:
string
]:
any
Returns
void
set
Overwrite
set
Overwrite
(
overwrite
)
:
void
Parameters
overwrite
:
boolean
Returns
void
set
Scroll
Left
set
Scroll
Left
(
scrollLeft
)
:
void
Parameters
scrollLeft
:
number
Returns
void
set
Scroll
Top
set
Scroll
Top
(
scrollTop
)
:
void
Parameters
scrollTop
:
number
Returns
void
set
Tab
Size
set
Tab
Size
(
tabSize
)
:
void
Parameters
tabSize
:
number
Returns
void
set
Undo
Manager
set
Undo
Manager
(
undoManager
)
:
void
Parameters
undoManager
:
Ace
.
UndoManager
Returns
void
set
Undo
Select
set
Undo
Select
(
enable
)
:
void
Parameters
enable
:
boolean
Returns
void
set
Use
Soft
Tabs
set
Use
Soft
Tabs
(
val
)
:
void
Parameters
val
:
boolean
Returns
void
set
Use
Worker
set
Use
Worker
(
useWorker
)
:
void
Parameters
useWorker
:
boolean
Returns
void
set
Use
Wrap
Mode
set
Use
Wrap
Mode
(
useWrapMode
)
:
void
Parameters
useWrapMode
:
boolean
Returns
void
set
Value
set
Value
(
text
)
:
void
Parameters
text
:
string
Returns
void
set
Wrap
Limit
set
Wrap
Limit
(
limit
)
:
void
Parameters
limit
:
number
Returns
void
set
Wrap
Limit
Range
set
Wrap
Limit
Range
(
min
,
max
)
:
void
Parameters
min
:
number
max
:
number
Returns
void
start
Operation
start
Operation
(
commandEvent
)
:
void
Parameters
commandEvent
:
{
command
:
{
name
:
string
;
}
;
}
command
:
{
name
:
string
;
}
name
:
string
Returns
void
toJSON
toJSON
(
)
:
Object
Returns
Object
toggle
Fold
toggle
Fold
(
tryToUnfold
?
)
:
void
Parameters
Optional
tryToUnfold
:
boolean
Returns
void
toggle
Fold
Widget
toggle
Fold
Widget
(
toggleParent
?
)
:
void
Parameters
Optional
toggleParent
:
boolean
Returns
void
toggle
Overwrite
toggle
Overwrite
(
)
:
void
Returns
void
undo
Changes
undo
Changes
(
deltas
,
dontSelect
?
)
:
void
Parameters
deltas
:
Ace
.
Delta
[]
Optional
dontSelect
:
boolean
Returns
void
unfold
unfold
(
location
,
expandInner
?
)
:
Ace
.
Fold
[]
Parameters
location
:
number
|
Ace
.
Range
|
Ace
.
Point
Optional
expandInner
:
boolean
Returns
Ace
.
Fold
[]
update
Fold
Widgets
update
Fold
Widgets
(
delta
)
:
void
Parameters
delta
:
Ace
.
Delta
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
cur
Op
doc
selection
widget
Manager
add
Dynamic
Marker
add
Event
Listener
add
Fold
add
Folds
add
Gutter
Decoration
add
Marker
adjust
Wrap
Limit
clear
Annotations
clear
Breakpoint
clear
Breakpoints
destroy
document
To
Screen
Column
document
To
Screen
Position
document
To
Screen
Row
duplicate
Lines
end
Operation
expand
Fold
expand
Folds
fold
All
getAWord
Range
get
All
Folds
get
Annotations
get
Breakpoints
get
Comment
Fold
Range
get
Display
Line
get
Document
get
Document
Last
Row
Column
get
Fold
At
get
Fold
Display
Line
get
Fold
Line
get
Fold
Row
End
get
Fold
Row
Start
get
Fold
String
At
get
Folded
Row
Count
get
Folds
In
Range
get
Folds
In
Range
List
get
Length
get
Line
get
Line
Widget
Max
Width
get
Lines
get
Markers
get
Mode
get
Navigate
Within
Soft
Tabs
get
New
Line
Mode
get
Next
Fold
Line
get
Option
get
Options
get
Overwrite
get
Parent
Fold
Range
Data
get
Preceding
Character
get
Row
Line
Count
get
Row
Split
Data
get
Row
Wrap
Indent
get
Screen
Last
Row
Column
get
Screen
Length
get
Screen
Tab
Size
get
Screen
Width
get
Scroll
Left
get
Scroll
Top
get
Selection
get
State
get
Tab
Size
get
Tab
String
get
Text
Range
get
Token
At
get
Tokens
get
Undo
Manager
get
Use
Soft
Tabs
get
Use
Worker
get
Use
Wrap
Mode
get
Value
get
Word
Range
get
Wrap
Limit
get
Wrap
Limit
Range
getdocument
Last
Row
Column
Position
highlight
highlight
Lines
indent
Rows
insert
is
Row
Folded
is
Tab
Stop
mark
Undo
Group
move
Lines
Down
move
Lines
Up
move
Text
off
on
once
outdent
Rows
redo
Changes
remove
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Fold
remove
Folds
remove
Full
Lines
remove
Gutter
Decoration
remove
Listener
remove
Marker
replace
reset
Caches
screen
To
Document
Column
screen
To
Document
Position
screen
To
Document
Row
set
Annotations
set
Breakpoint
set
Breakpoints
set
Default
Handler
set
Document
set
Fold
Style
set
Mode
set
Navigate
Within
Soft
Tabs
set
New
Line
Mode
set
Option
set
Options
set
Overwrite
set
Scroll
Left
set
Scroll
Top
set
Tab
Size
set
Undo
Manager
set
Undo
Select
set
Use
Soft
Tabs
set
Use
Worker
set
Use
Wrap
Mode
set
Value
set
Wrap
Limit
set
Wrap
Limit
Range
start
Operation
toJSON
toggle
Fold
toggle
Fold
Widget
toggle
Overwrite
undo
Changes
unfold
update
Fold
Widgets
Ace API Reference
ace
src
ace
anchor
apply_delta
autocomplete
background_tokenizer
bidihandler
clipboard
commands
command_manager
default_commands
incremental_search_commands
multi_select_commands
occur_commands
config
css/editor-css
document
edit_session
editor
ext
Loading...
Generated using
TypeDoc