Project

General

Profile

Editor Options » History » Version 1

Per Amundsen, 03/26/2021 09:18 PM

1 1 Per Amundsen
{{>toc}}
2
3
h1. Editor Options
4
5
!editoroptions.png!
6
7
There are various options in the Editor which affects various features.
8
9
h2. Initialization warning
10
11
If enabled, loading new scripts in the [[Scripteditor_Dialog|Script Editor}} which contains a [[on START]] or [[on LOAD]] event will ask to execute these events.
12
13
h2. Ask To Save Files
14
15
If enabled, AdiIRC will ask before closing a editor if there are unsaved changes.
16
17
h2. Monitor File Changes.
18
19
if enabled, AdiIRC will monitor all loaded vars/users/menu/aliases/script files for file changes and ask for confirmation before reloading them.
20
21
h2. Backup Files On Save
22
23
If enabled, AdiIRC will first write to a temporary file the copy the temporary file over the target file.
24
25
h2. Indent Format On Exit
26
27
If enabled, AdiIRC will perform *check bracket* on the file when the edit is closed.
28
29
The check bracket feature indents the code with whitespaces according to the bracket { } level and displays a warning if there are mismatched number of brackets. (the warning is suppressed on closing)
30
31
This:
32
33
<pre>
34
alias {
35
command1
36
command2
37
if (1 == 1) {
38
command3
39
command4
40
}
41
}
42
</pre>
43
44
becomes this:
45
46
<pre>
47
alias {
48
  command1
49
  command2
50
  if (1 == 1) {
51
    command3
52
    command4
53
  }
54
}
55
</pre>