Extending ScriptWorx - Predefined Objects

The Editor Object: Properties and Methods

Properties
Font.Name Specifies editor font (String)
Font.Size Specifies the size of the editor font (Integer)
GutterWidth Sets width of gutter in pixels (Integer)
HideScrollbars Toggles scrollbar visibility (Boolean: True, False)
LineHeight Height of a line in pixels (Integer)
SelText Text selected in the editor (String)
TemplatesType TagTemplates (Custom, Delphi, C++ Builder, Clipper)
UndoLimit Sets the number of possible undo actions (Integer)
Wordwrap Wraps text at a given value (Boolean: True, False)
Methods
CutToClipboard Cut selected text to clipboard (x)
CopyToClipboard Copy selected text to clipboard (x)
Clear Empties editor of all text
ExportToHTML(s) Ouput a color-coded representation of code to file
ExportToRTF(s) Ouput a color-coded representation of code to file
GetSource.Insert(s) Inserts text at current position
ShowGoToLineDialog Shows the jump-to-line dialog
ShowSearchDialog Shows the find dialog
ShowReplaceDialog Shows the find and replace dialog
TextAtCursor Returns text directly below cursor
Lines.Add(s) Adds text at end of the document
Lines.Delete(i) Deletes a line of text from the document
Lines.LoadFromFile(s) Loads a file from disk
Lines.SaveToFile(s) Saves a file to disk
PasteFromClipboard Paste text from the clipboard
SelectAll Select all the text in the editor