This is an old revision of the document!


Service Scripts

Service scripts (or Script Plugins) is a rich kind of scripts, that are very close in possibilities to binary plugins and allows you to create extensions for HippoEDIT that seamlessly integrating in its UI giving same feeling as native built-in functionality.

Such scripts are living resident in HippoEDIT process and react on events (as menu command selection, shortcut call, or document load). Another feature of service scripts is automatic loading on every HippoEDIT start. So, you install it, and than it runs always, until you uninstall it.

Installation here mean is simple running/execution of script using Tools→Execute… HippoEDIT automatically detects that script has been registered to one of events and keep plugin loaded (and reloads on start).
Un-install means unload it with Tools→Options→Plugins→your plugin name → uncheck.

Set syntax dynamically for new files (normally this is done with Tools→Options→Syntax Settings→Syntax→Miscellaneous→File Pattern)

on-new-document.hejs
onNewDocument = function() {
  this.Syntax = Settings.GetSyntax("xml");
};