AnnotationAdd( Row as Integer, theText as String, theType as String )
This method will add an annotation icon with informational tooltip to the left of the line numbers in the gutter of the Row specified.
AnnotationRemove( Row as Integer )
Remove any annotation on Row.
AnnotationRemoveAll()
Remove all annotations.
BreakpointAdd( Row as Integer )
Add a breakpoint to Row.
BreakpointRemove( Row as Integer )
Remove breakpoint from Row.
BreakpointRemoveAll( Row as Integer )
Remove all breakpoints from the current document.
DeselectAll()
Deselect all text in the current document.
Find( theText as String, intStartPosition as Integer = 0, blnBackward as Boolean = false, blnWrap as Boolean = False, blnCaseSensitive as Boolean = False, blnWholeWord as Boolean = False, blnRegEx as Boolean = False, blnSkipCurrentLine as Boolean = False )
This starts the Find system.
FindNext()
Finds the next searched for match in the document. Must follow a call to Find()
FindPrevious()
Finds the searched for match in the document by moving backward from the current position. Must follow a call to Find()
GotoLine( Row as Integer )
Automatically sets the cursor to the start of the line signified by Row.
Insert( theText as String )
Inserts theText in to the Syntax Editor at the cursor’s current position.
Redo()
Redo an undone change to the text.
Replace( replaceWith as String )
Replace a searched for match. Must follow a call to Find()
ReplaceAll( replaceWith as String )
Replace all matches for the previous search. Must follow a call to Find()
ReplaceAll( strFind as String, replaceWith as String )
Replace all instances of strFind with replaceWith.
ResetUndoStack()
Clears the Undo/Redo stack. Useful if you are saving the document and don’t want to allow reversing changes back beyond that point.
ScrollToLine( Row as Integer )
Scrolls Row in to the syntax editor view.
SelectAll()
Selects all text within the editor.
SelectionIndent()
Indents the current line.
SelectionOutdent()
Outdents the current line.
SelectionToggleComment()
Toggles comment on the current line.
SelectionToLowercase()
Convert all text in the current selection to lowercase.
SelectionToUppercase()
Convert all text in the current selection to uppercase.
SelectLine( Row as Integer )
Select the line signified by Row.
ToHTML( includeCSS as Boolean = True )
Signals the client to convert the content to styled HTML and send it back to the server. HTMLRendered event will be raised upon receipt.
The currently applied row annotations. Should not be modified directly.
AvailableModes()
String
Nil
The currently available syntax highlighting modes.
AvailableThemes()
String
Nil
The currently available display themes.
CanRedo Read-Only
Boolean
False
If the editor can Redo a recently undone change.
CanUndo Read-Only
Boolean
False
If the editor can undo a recent change.
CodeFolding
Boolean
True
If True and supported by the selected Mode, code blocks will be allowed to fold by clicking an arrow on the gutter.
CursorColumn Read-Only
Integer
0
The column of the document where the cursor currently resides.
CursorRow Read-Only
Integer
0
The row of the document where the cursor currently resides.
FirstVisibleRow Read-Only
Integer
0
The first line that is visible in the editor’s display.
FontFamily
String
Monospace
Font family used for code within the editor.
FontSize
Integer
0
The size of font to use for the code in the editor.
HighlightActiveLine
Boolean
True
Places a colored highlight over the line where the cursor resides. This makes it easier for users to quickly find where they left off.
LastVisibleRow Read-Only
Integer
0
The last line that is visible in the editor’s display.
LineCount Read-Only
Integer
0
The number of lines in the current document.
Mode
Modes
Modes.ABAP
The syntax highlight mode to use.
ReadOnly
Boolean
False
If True, users will not be able to edit the contents of the field.
SelEnd
Integer
0
The end position of the current selection range.
SelStart
Integer
0
The start position of the current selection range.
SelText Read-Only
String
“”
The currently selected text in the editor.
ShowGutter
Boolen
True
Controls visibility of the left-hand editor gutter containing line numbers and collapsible section controllers.
ShowPrintMargin
Boolean
False
If True, a print margin line and color differentiation will be display along the left-side corresponding to the width of a 8.5×11 sheet.
SoftTabs
Boolean
True
Pass true to enable the use of soft tabs. Soft tabs means you’re using spaces instead of the tab character.
SyntaxChecker
Boolean
True
Pass true to enable basic syntax checking for supported languages. Note that while this is enabled, if there is an error in the code then annotations will be hidden in order to display only those errors which need to be resolved.
Text
String
“”
Get/Set the current text of the document, as a whole.
Our website uses cookies to provide you the best experience. These may include for the purposes of tracking or marketing. By continuing to use our website, you agree to our use of cookies.
For more information, read our Privacy Policy.