- applyClosingCurlySmartIndent
void applyClosingCurlySmartIndent(EditOperation op, Object source)
Undocumented in source. Be warned that the author may not have intended to support it.
- applyNewLineSmartIndent
void applyNewLineSmartIndent(EditOperation op, Object source)
Undocumented in source. Be warned that the author may not have intended to support it.
- applySmartIndent
void applySmartIndent(EditOperation op, Object source)
apply smart indent, if supported
- canToggleBlockComment
bool canToggleBlockComment(TextRange range)
return true if can toggle block comments for specified text range
- canToggleLineComment
bool canToggleLineComment(TextRange range)
return true if can toggle line comments for specified text range
- commentLine
dstring commentLine(dstring s, int commentX)
Undocumented in source. Be warned that the author may not have intended to support it.
- findPairedBracket
TextPosition findPairedBracket(TextPosition p)
returns paired bracket {} () [] for char at position p, returns paired char position or p if not found or not bracket
- getPositionToken
TokenWithRange getPositionToken(TextPosition pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- getRangeTokens
TokenWithRange[] getRangeTokens(TextRange range)
Undocumented in source. Be warned that the author may not have intended to support it.
- initTokenizer
bool initTokenizer()
Undocumented in source. Be warned that the author may not have intended to support it.
- isInsideBlockComment
bool isInsideBlockComment(TextPosition pos)
Undocumented in source. Be warned that the author may not have intended to support it.
- isLineComment
bool isLineComment(dstring s)
Undocumented in source. Be warned that the author may not have intended to support it.
- nextBracket
dchar nextBracket(int dir, TextPosition p)
Undocumented in source. Be warned that the author may not have intended to support it.
- nextToken
TokenWithRange nextToken()
Undocumented in source. Be warned that the author may not have intended to support it.
- supportsSmartIndents
bool supportsSmartIndents()
returns true if smart indent is supported
- toggleBlockComment
void toggleBlockComment(TextRange srcrange, Object source)
toggle block comments for specified text range
- toggleLineComment
void toggleLineComment(TextRange range, Object source)
toggle line comments for specified text range
- tokenStart
TextPosition tokenStart(TextPosition pos)
searches for neares token start before or equal to position
- uncommentLine
dstring uncommentLine(dstring s)
remove single line comment from beginning of line
- updateHighlight
void updateHighlight(dstring[] lines, TokenPropString[] props, int changeStartLine, int changeEndLine)
categorize characters in content by token types
- content
EditableContent content [@property getter]
- content
EditableContent content [@property setter]
- updateHighlight
void updateHighlight(dstring[] lines, TokenPropString[] props, int changeStartLine, int changeEndLine)
categorize characters in content by token types
- supportsToggleLineComment
bool supportsToggleLineComment [@property getter]
return true if toggle line comment is supported for file type
- canToggleLineComment
bool canToggleLineComment(TextRange range)
return true if can toggle line comments for specified text range
- toggleLineComment
void toggleLineComment(TextRange range, Object source)
toggle line comments for specified text range
- supportsToggleBlockComment
bool supportsToggleBlockComment [@property getter]
return true if toggle block comment is supported for file type
- canToggleBlockComment
bool canToggleBlockComment(TextRange range)
return true if can toggle block comments for specified text range
- toggleBlockComment
void toggleBlockComment(TextRange range, Object source)
toggle block comments for specified text range
- findPairedBracket
TextPosition findPairedBracket(TextPosition p)
returns paired bracket {} () [] for char at position p, returns paired char position or p if not found or not bracket
- supportsSmartIndents
bool supportsSmartIndents()
returns true if smart indent is supported
- applySmartIndent
void applySmartIndent(EditOperation op, Object source)
apply smart indent after edit operation, if needed