Project

General

Profile

Actions

Formatting text » History » Revision 10

« Previous | Revision 10/83 (diff) | Next »
Per Amundsen, 05/17/2015 02:30 AM


Formatting text

AdiIRC supports control codes for formatting text.

Colorchar

Colors blocks of text.

Ascii character $chr(3)

Ctrl + K can be used in editbox to type this character.

The character can be follow by 1-2 digits that represent the color number.

By specifying a comma after the digits, you can add a 1-2 digit background color as well.

The default colors can be changed in Options -> Colors -> mIRC Colors.

A second color character can be used to stop the coloring and revert to default line color.

Example

; Prints the text 'Hello World' with color 4 which is red by default.
//echo -ag $chr(3) $+ 3 Hello world

; Prints the text 'Hello' with color 4 which is red by default and 'world' in the default line color.
//echo -ag $chr(3) $+ 3 Hello $+ $chr(3) $+ world

; Prints the text 'Hello World' with color 4 which is red by default and background color 12 which is blue by default.
//echo -ag $chr(3) $+ 3,12 Hello world

Boldchar

Makes the block use a bold font.

Ascii character $chr(2)

Ctrl + B can be used in editbox to type this character.

Example

//echo -ag $chr(2) this text is bold $chr(2) this text is not

Italicchar

Makes the block use a italic font.

Ascii character $chr(29)

Ctrl + I can be used in editbox to type this character.

Example

//echo -ag $chr(2) this text is italic $chr(2) this text is not

Underlinechar

Makes the block use a underline font.

Ascii character $chr(31)

Ctrl + U can be used in editbox to type this character.

Example

//echo -ag $chr(2) this text is underline $chr(2) this text is not

Stopchar

Stops all color and font formatting.

Ascii character $chr(15)

Ctrl + O can be used in editbox to type this character.

Alternative colorchar

$chr(61442) - Alternative way to show any color.h1.

Updated by Per Amundsen over 9 years ago · 10 revisions

Also available in: PDF HTML TXT