Variables Dialog » History » Version 2
Per Amundsen, 03/27/2021 05:17 AM
1 | 1 | Per Amundsen | {{>toc}} |
---|---|---|---|
2 | |||
3 | h1. Variables Editor |
||
4 | |||
5 | !editvariables.png! |
||
6 | |||
7 | The variables editor allows adding or editing or viewing global scripting variables. |
||
8 | |||
9 | 2 | Per Amundsen | it can be opened by clicking [[Menubar_Control|Menubar]] -> Tools -> Edit Variables or by typing [[/edit]] -v. |
10 | 1 | Per Amundsen | |
11 | The editor shares characteristics with all the other editors. |
||
12 | |||
13 | _See also [[/set]], [[/unset]], [[/vars]], [[$var]], [[Editor Options]]._ |
||
14 | |||
15 | h2. Variables format |
||
16 | |||
17 | The format of a variable is %name<whitespace><text>. |
||
18 | |||
19 | h2. Saving variables to a different ini file |
||
20 | |||
21 | To save the current variables file to a different ini file, click the Menubar (inside the editor) -> File -> Save As menu item. |
||
22 | |||
23 | h2. Loading variables from a different ini file |
||
24 | |||
25 | To load variables from a different ini file, click the Menubar (inside the editor) -> File -> Load menu item or use the [[/load]] command. |
||
26 | |||
27 | When loading variables using the [[/load]], [[/reload]] or [[/unload]] command, the variables editor will be automatically updated with the new variables. |
||
28 | |||
29 | h2. Search/replace text |
||
30 | |||
31 | Clicking the Menubar (inside the editor) -> Edit -> Find or pressing the %(key)CTRL% + %(key)F% shortcut opens the search and replace panel. |
||
32 | |||
33 | You can search or search and replace using a [[Scripting_Regex|Regular Expression]] by checking the *Regex* checkbox. |
||
34 | |||
35 | Pressing the %(key)ESCAPE% key closes the search panel. |
||
36 | |||
37 | h2. Reloading a variables file |
||
38 | |||
39 | 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]]. |
||
40 | |||
41 | h2. Refreshing a variables file |
||
42 | |||
43 | If variables has been changed while the editor was open, pressing the *Refresh* button will update the editor. |
||
44 | |||
45 | _Note: this removes any unsaved changes._ |
||
46 | |||
47 | h2. Font |
||
48 | |||
49 | The font of the editor can be changed by clicking the Menubar (inside the editor) -> File -> Change Font menu item. |
||
50 | |||
51 | _Note: only "truetype":https://en.wikipedia.org/wiki/TrueType fonts can be used._ |
||
52 | |||
53 | h2. Colors |
||
54 | |||
55 | The editor colors can be changed in [[Options Dialog|Options]] -> [[Colors Options|Colors]]. |