Script

Script Engine

VBScript/JScript are the built-in script engines of EverEdit. You could use VBS/JScript to manage your macros and define syntax highlights. Recommend JScript to write scripts for EverEdit. JScript is very simple and powerful, you could leverage various COM components in JScript/VBScript.

Save Script

In order to manage scripts, all the files should be placed into macro folder. EverEdit will automatically build a menu for these scripts. After adding/deleting scripts, you'd better refresh the menu by clicking [Reload Macros...] from Addons menu.

VBScript files should be saved with .mac or .evb and JScript should be .ejs.

How to bind a shortcut

Open shortcut manager and drag-drop a script file into the dialog or click Bind button to add a script file into Shortcut View. Then, just set the shortcut like normal commands.

Built-in Objects and Functions

  • SCRIPT_PATH: get path of current script

  • SCRIPT_FULLNAME get full path(path+filename) of current script

  • SCRIPT_NAMEONLY get file name only of current script

  • Include(): include a script

Application

An application object means the EverEdit instance you are using.

Document

An document metans the active text tab.

Pos

OutputWindow

HexDoc

Project

Last updated