Project

General

Profile

Formatting text » History » Version 10

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

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