formatStr Advanced Text Formatting System

Programmed by Correl J. Roush of www.phoenixinquis.net

RegEx programming advice provided by qwerty of the www.mirc.com message boards.

Phoenix Inquisitors Network -- 2002

Formatting Strings

Credits/Contact Information


Formatting Strings

This script uses a format string parser built specifically for this nick completer script. The following identifiers come prepackaged with the formatStr script, loaded as a profile. Scripts that use the formatStr parser may add their own identifiers in new profile files (more on this in Using formatStr in your scripts).

Nickname Replacement Identifiers

The following identifiers represent the nickname being formatted, and are used to insert the nickname itself into the final result string.

&W   Full nickname

&F   First letter

&M   Middle letters

&L   Last letter

Basic Formatting Identifiers

The following identifiers take the place of the standard mIRC bold, underline, reverse and color characters.

&B   Bold

&U   Underline

&R   Reverse

&C[n][,n2]   Color, where n and n2 are optional, and n = foreground color, and n2 = background color

Advanced Formatting Function Identifiers

The meat of the new formatting engine, these functions perform advanced formatting techniques on text, such as randomly altering case or converting it to l337. Formatting functions use opening and closing tags, not unlike, say, HTML. For instance, to alternate case on a nickname, you would use {N:&W:N}. Formatting functions may be nested indefinitely if needed ;)

{C:…:C}   Cycle Style

{R:…:R}   Random Style

{U:…:U}   UPPERCASE

{L:…:L}   lowercase

{M:…:M}   rANDOmiZed case

{N:…:N}   aLtErNaTeD CaSe

{E:…:E}   £33+ 5+y£3 (Leet Style)


Credits / Contact Information

Correl Roush

AIM: phoenixinquis

IRC: PhoenixInquisitorNet (Dalnet, #pinet, #gameworks, #rareroms)

        ^Phoenix^ (irc-1.aniverse.net, #megatokyo)

URL: www.phoenixinquis.net

E-Mail: correlr@phoenixinquis.net

Special thanks to qwerty for his assistance with the regular expressions programming in the formatstring parser. Also, thanks to everyone on IRC who has been brave and kind enough to test out and use this nick completion script. And, of course, special thanks go out to Khaled and the rest of the mIRC community for making mIRC the excellent IRC client that it is today.