Welcome Guest [Log In] [Register]
Add Reply
mIRC Syntax Highlighter/Colour Script.
Topic Started: Nov 19 2009, 06:10 PM (181 Views)
Magnus
Administrator
I didn't make this one, but I thought it'd be nice to share. In mIRC, you copy the code in question and go to whatever window you wish to post it, then type /pastecode.

Code:
 

;Credit goes to r00tb0y.
alias pastecode {
var %r1 = /((?:\$[^\s\(\),]+|(?<=\))\.\w++))/g
var %r2 = /([\(\)\[\]])/g
var %r3 = /((?:[,\:><=|!]|&(?=\W)))/g
var %r4 = /((?:%[^&\s\(\),\cc]+|&\w++))/g
var %r5 = /([{}])/g
var %r6 = /(?:^|\G)(\s)/g
var %r7 = /(#[^\s\(\),]*)/g
var %r8 = /\co(\s*\cc\d\d)/g
var %r9 = /((\cc\d\d)[^\cc\co]++)\2/g
var %loop = 1, %end = $cb(0)
while (%loop <= %end) {
var %msg = $regsubex($regsubex($regsubex($regsubex($regsubex($regsubex($regsubex($regsubex($cb(%loop),%r1,03\1),%r2,12\1),%r3,07\1),%r4,10\1),%r5,13\1),%r6,\1),%r7,04\1),%r8,\1)
while ($regex(%msg,%r9)) var %msg = $regsubex(%msg,%r9,\1)
say %msg
inc %loop 1
}
}
Edited by Magnus, Nov 19 2009, 06:11 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · mIRC · Next Topic »
Add Reply