{{>toc}} h1. Variables Editor !editvariables.png! The variables editor allows adding or editing or viewing global scripting variables. it can be opened by clicking [[Menubar_Control|Menubar]] -> Tools -> Edit Variables or by typing [[/edit]] -v. The editor shares characteristics with all the other editors. _See also [[/set]], [[/unset]], [[/vars]], [[$var]], [[Editor Options]]._ h2. Variables format The format of a variable is %name. h2. Saving variables to a different ini file To save the current variables file to a different ini file, click the Menubar (inside the editor) -> File -> Save As menu item. h2. Loading variables from a different ini file To load variables from a different ini file, click the Menubar (inside the editor) -> File -> Load menu item or use the [[/load]] command. When loading variables using the [[/load]], [[/reload]] or [[/unload]] command, the variables editor will be automatically updated with the new variables. h2. Search/replace text Clicking the Menubar (inside the editor) -> Edit -> Find or pressing the %(key)CTRL% + %(key)F% shortcut opens the search and replace panel. You can search or search and replace using a [[Scripting_Regex|Regular Expression]] by checking the *Regex* checkbox. Pressing the %(key)ESCAPE% key closes the search panel. h2. Reloading a variables file If a variables file was modified outside of the editor, it can be reloaded by clicking the Menubar (inside the editor) -> File -> Reload menu item or by pressing the %(key)F5% shortcut or by typing [[/reload]]. h2. Refreshing a variables file If variables has been changed while the editor was open, pressing the *Refresh* button will update the editor. _Note: this removes any unsaved changes._ h2. Font The font of the editor can be changed by clicking the Menubar (inside the editor) -> File -> Change Font menu item. _Note: only "truetype":https://en.wikipedia.org/wiki/TrueType fonts can be used._ h2. Colors The editor colors can be changed in [[Options Dialog|Options]] -> [[Colors Options|Colors]].