@Hawkee: The words [co(delete)lor1] [co(delete)lor2] are hidden or parsed out from this code block, and are only visible when in editing mode. What other code disappears from users? P.S. They also disappear from this comment, so I inserted the word (delete) into each. P.S.S. I can no longer 'tag' you.
Script Help requests may not be posted on this site. Users are asked to request mIRC script support at the mIRC.com forums. http://forums.mirc.com/ubbthreads.php
Script Help requests may not be posted on this site. Users are asked to request mIRC script support at the mIRC.com forums. http://forums.mirc.com/ubbthreads.php
Oldest found source. http://pastebin.ca/824605
Interesting approach, basically adds zero padding to selective tokens.
Just wanted to note that $asctime already supports advanced date formatting...
alias formatdate { return $asctime($ctime($1), $2-) }
The only difference here is the input date must be in the British ordering of d/m/y (eg, dd/mm/yyyy or d/mm/yy etc).
And you have access to more format outputs, as well as time formats. Type /help $asctime
(yy, yyyy, m, mm, mmm, mmmm, d, dd, ddd, dddd, oo) and (hh, H, HH, n, nn, s, ss, t, tt, T, TT, z, zz, zzz)
Examples:$formatdate(28/7/2015, mm/dd/yyyy)
outputs: 07/28/2015$formatdate(28/7/2015, dddd dd mmmm yyyy)
outputs: Tuesday 28 July 2015$formatdate(28/7/2015 17:23, ddoo of mmmm @ hh:nn tt)
outputs: 28th of July @ 05:23 pm
Enjoy :)
PS. If you want a comma in your output format, you will need to use $+ $chr(44)
or pass the format in a variable.var -s %in = 28/7/2015, %fmt = mmmm dd, yyyy, %out = $formatdate(%in,%fmt)
for: July 28, 2015
@Hawkee : What can you do about a Plain Text 'code' or 'pre' box that doesn't include syntax highlighting, and optionally no line numbers?
This is not the place to ask for help or support for mIRC scripting. The correct place is the mIRC Forums.
Hawkee is a place to feature content you have created and to collaborate with other users.