Color Codes for Hawkee.com

By Freckle on Jan 15, 2008

I don't really consider this as a script but this will help people that are trying to use color codes in their snippets for the website

easily do $hawkee.color(04) and it will return the color red.

Make sure you add it to the script when you submit it ;)

Also I'm not going to add a if (!$1) thing because I want to keep it small...

EDIT** will also work when doing $hawkee.color(04,3) or something

###################################
#Trying to reach the 100 characters :/
#I hope this ain't against the rules because I consider
#this as a rather useful snippet
###################################

alias hawkee.color {
if ($2) { return $chr(3) $+ $1 $+ , $+ $2 | halt }
return $chr(3) $+ $1
}

Comments

Sign in to comment.
LucSatise   -  Jan 18, 2008

if u gonna do tht just paste the snippet here and give them link to it

 Respond  
Freckle   -  Jan 15, 2008

Look at the snippets like http://www.hawkee.com/snippet/3490/
they could make good use of $hawkee.color

 Respond  
Freckle   -  Jan 15, 2008

I submitted this for use to submit a snippet on the forums so you don\'t have to tell people to add the ctrl+k codes in there for it to work but they can just use the $hawkee.color
It\'s not meant for general use just for this website

 Respond  
guest598594   -  Jan 15, 2008

i dont really see the point of this, it would be much quicker to type ctrl k and copy and paste than to //echo -a $hawkee.color(colorcode) in my opinion :/

also, put ;\'s in front of the comments in the code

 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.