Categories


Popular topics


Example of script open for editing in UltraEdit

Scripting in UltraEdit / UEStudio is enabled through embedding of the JavaScript engine. This allows you to access the power and flexibility of the full JavaScript language while using unique UltraEdit scripting commands to specifically interact with the editor and open files.

Creating a script in UltraEdit is as simple as creating a new file, writing the code for the script, and saving it with a .js file extension. To see documentation on all available scripting commands and techniques, see the Scripting reference topic. There are also many scripts available for download from the main UltraEdit website.

Because scripts are based upon JavaScript syntax and use the .js file extension, UltraEdit / UEStudio syntax highlight these files with special highlighting support for the scripting commands unique to UltraEdit / UEStudio.

You can run a script that hasn't yet been added to the list of scripts by clicking the Play script icon (not opening the dropdown sub-menu) in the Advanced tab while the script is the active file. Clicking Play script will run the active file as a script and write any error our output information to the output window. This provides a convenient way for testing and troubleshooting scripts as you are composing them.

Once your script is complete, you can add it in the Scripts window. There, you can assign the script a hotkey or chord, and once it has been added to UltraEdit as a script, you can play it via one of several ways:

  • By double-clicking it in the Script list window
  • By clicking it in the Play script dropdown sub-menu
  • By pressing its assigned hotkey
  • By adding it to the ribbon / toolbar (v25 and later)

You can edit a script via one of several ways:

  • By opening the .js script file directly via the File open dialog
  • By selecting "Edit script" from the Script list context menu
  • By clicking the Edit button in the Scripts window
MediaWiki spam blocked by CleanTalk.