Formatting text » History » Version 8
Per Amundsen, 05/17/2015 02:28 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 | 8 | Per Amundsen | <pre> |
58 | //echo -ag $chr(2) this text is italic $chr(2) this text is not |
||
59 | </pre> |
||
60 | |||
61 | 1 | Per Amundsen | h1. Underlinechar |
62 | |||
63 | 7 | Per Amundsen | Makes the block use a +underline+ font. |
64 | |||
65 | Ascii character [[$chr]](31) |
||
66 | |||
67 | Ctrl + U can be used in editbox to type this character |
||
68 | 8 | Per Amundsen | |
69 | <pre> |
||
70 | //echo -ag $chr(2) this text is underline $chr(2) this text is not |
||
71 | </pre> |
||
72 | 2 | Per Amundsen | |
73 | h1. Stopchar |
||
74 | |||
75 | [[$chr]](15) - Ctrl + O - Stops all formatting. |
||
76 | |||
77 | Alternative colorchar |
||
78 | |||
79 | [[$chr]](61442) - Alternative way to show any color.h1. |