EmEditor Home - EmEditor Help - EmEditor Macro Reference - Tutorial

Specifications of Macro (Document Object Model)

In the specifications of the EmEditor macro Document Object Model (DOM), Window Object is the current scope. In other words, properties and methods without explicit scope refer to the current Window Object. For example, the first document is the document Property of the Window Object, which applies to scripts used for web browsers. For those who are familiar with web browser scripting, the following code might look more familiar:


    document.write("EmEditor supports macros.");


    document.write "EmEditor supports macros."

Either of the above examples produces the same result; the behaviors of Text Property and that of write Method are identical.

You can use multiple objects in EmEditor macros. We designed the macros this way to achieve Object-Oriented Programming (OOP) as well as to allow extensibility and to accommodate future enhancements of the macros, such as manipulating multiple windows and documents in a single macro.

You can use the following objects in EmEditor macros:

Next Topic:

Insert Characters

Copyright 2003-2016 by Emurasoft, Inc.