Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Selection Object > Methods

EmEditor Macro Reference: Format Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Selection Object

Format Method

Inserts or deletes new lines in the selection.

[JavaScript]

document.selection.Format( nFlags );

[VBScript]

document.selection.Format nFlags

Parameters

nFlags

Specifies a combination of the following values:

eeFormatInsertNL

Inserts new lines at wrapped positions in the selection.

eeFormatDeleteNL

Removes new lines at wrapped positions in the selection.

eeFormatSplitLines

Splits lines by inserting new lines and removing trailing spaces (EmEditor Professional Version 4.10 or later).

eeFormatJoinLines

Joins lines by removing new lines and inserting spaces at the end of each line (EmEditor Professional Version 4.10 or later).

Version

Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2016 by Emurasoft, Inc.