$colorize()

By jaytea on Apr 22, 2010

just a quick fun submission :D $colorize(string) to color the parentheses in the string according to depth. each new level of parentheses has a new color, as you can see from:

http://img230.imageshack.us/img230/1197/colorizehf0.jpg

alias colorize %a = | return $regsubex($1-,/(\()|(\))()/g, $+ $calc(2+(-$len(\2$c(\2))+%a)% 14)\1)
alias -l c inc -u %a $1 -1

Comments

Sign in to comment.
Bielie   -  Apr 22, 2010

and has that to be placed infron of a text or something? how is it used?

 Respond  
WorldDMT   -  Apr 22, 2010

nice one jaytea

 Respond  
jaytea   -  Apr 22, 2010

take a look at the screenshot to see examples of what various lines of mircscript turn into when run through the alias

you can test it out by copying a line of code, or anything including ()s, going to mirc and typing //echo -a $colorize($cb)

 Respond  
Bielie   -  Apr 22, 2010

what does it do??

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.