EmEditor Home - EmEditor Help - EmEditor Macro Reference

Document Object

Properties

Config Retrieves the Config Object.
ConfigName Retrieves or sets the current configuration name.
Encoding Retrieves or sets the current encoding of the opened file.
FontCategory Retrieves or sets the current font category.
FullName Retrieves the complete path and file name of the document.
HighlightFind Determines whether to highlight the searched strings.
HighlightTag Determines whether to highlight tags.
Name Retrieves only the file name of the current document.
Path Retrieves only the path of the current document.
ReadOnly Sets the Read-Only status of the document.
Saved Retrieves or sets the flag indicating whether the document has been modified since last being saved or opened.
selection Retrieves the Selection Object.
UnicodeSignature Retrieves or sets the flag indicating whether EmEditor should add the Unicode signature (BOM) next time it saves the document.

Methods

Activate Activates the document.
close Closes the document.
CopyFullName Copies the complete path and file name of the document to the Clipboard.
CopyPath Copies only the path of the document to the Clipboard.
GetLine Retrieves the text on the specified line.
GetLines Retrieves the number of the lines in the document.
Redo Redo the last action undone with the Undo command.
Save Saves the document.
Undo Undo the last action.
write Inserts or overwrites a string at the current cursor position.
writeln Inserts or overwrites a string and a new line at the current cursor position.

Version

Supported on EmEditor Professional Version 4.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.