Project

General

Profile

Formatting text » History » Version 12

Per Amundsen, 05/17/2015 02:31 AM

1 1 Per Amundsen
{{>toc}}
2
3
h1. Formatting text
4
5
AdiIRC supports control codes for formatting text.
6
7 12 Per Amundsen
All control codes can be combined to format the same block.
8
9 2 Per Amundsen
h1. Colorchar
10
11 4 Per Amundsen
Colors blocks of text.
12
13 7 Per Amundsen
Ascii character [[$chr]](3)
14 4 Per Amundsen
15
Ctrl + K can be used in editbox to type this character.
16
17 7 Per Amundsen
The character can be follow by 1-2 digits that represent the color number.
18 1 Per Amundsen
19 7 Per Amundsen
By specifying a comma after the digits, you can add a 1-2 digit background color as well.
20
21
The default colors can be changed in Options -> Colors -> mIRC Colors.
22
23 8 Per Amundsen
A second color character can be used to stop the coloring and revert to default line color.
24
25 6 Per Amundsen
*Example*
26
<pre>
27
; Prints the text 'Hello World' with color 4 which is red by default.
28
//echo -ag $chr(3) $+ 3 Hello world
29
30 8 Per Amundsen
; Prints the text 'Hello' with color 4 which is red by default and 'world' in the default line color.
31
//echo -ag $chr(3) $+ 3 Hello $+ $chr(3) $+ world
32
33 6 Per Amundsen
; Prints the text 'Hello World' with color 4 which is red by default and background color 12 which is blue by default.
34
//echo -ag $chr(3) $+ 3,12 Hello world
35
</pre>
36 1 Per Amundsen
37 2 Per Amundsen
h1. Boldchar 
38 1 Per Amundsen
39 7 Per Amundsen
Makes the block use a *bold* font.
40 1 Per Amundsen
41 7 Per Amundsen
Ascii character [[$chr]](2)
42
43
Ctrl + B can be used in editbox to type this character.
44
45 8 Per Amundsen
*Example*
46
47
<pre>
48
//echo -ag $chr(2) this text is bold $chr(2) this text is not
49
</pre>
50
51 1 Per Amundsen
h1. Italicchar 
52
53 7 Per Amundsen
Makes the block use a _italic_ font.
54 1 Per Amundsen
55 7 Per Amundsen
Ascii character [[$chr]](29)
56
57
Ctrl + I can be used in editbox to type this character.
58
59 9 Per Amundsen
*Example*
60
61 8 Per Amundsen
<pre>
62 11 Per Amundsen
//echo -ag $chr(2) this text is italic $chr(29) this text is not
63 8 Per Amundsen
</pre>
64
65 1 Per Amundsen
h1. Underlinechar 
66
67 7 Per Amundsen
Makes the block use a +underline+ font.
68
69
Ascii character [[$chr]](31)
70
71 10 Per Amundsen
Ctrl + U can be used in editbox to type this character.
72 9 Per Amundsen
73
*Example*
74 8 Per Amundsen
75
<pre>
76 11 Per Amundsen
//echo -ag $chr(2) this text is underline $chr(31) this text is not
77 8 Per Amundsen
</pre>
78 2 Per Amundsen
79
h1. Stopchar 
80 1 Per Amundsen
81 10 Per Amundsen
Stops all color and font formatting.
82
83
Ascii character [[$chr]](15)
84 1 Per Amundsen
85
Ctrl + O  can be used in editbox to type this character.
86 11 Per Amundsen
87
*Example*
88
89
<pre>
90
//echo -ag $chr(3) $+ 4 $+ $chr(2) this text is bold and colored $chr(15) this text is not
91
</pre>
92 2 Per Amundsen
93
Alternative colorchar 
94
95
[[$chr]](61442) - Alternative way to show any color.h1.