|
Michael Nelson Novice
Joined: 03 Oct 2005 Posts: 36
|
Posted: Mon Oct 03, 2005 9:07 am
Question: Reguarding color |
Hi I realise this is probably quite a remedial question for this type of forum but if someone could help me I would much appreciate it.
I would like to be able to use the html style color codes e.g. #CE59CE or $CE59CE inline with the #show or #say function
Much like you can #show %ansi(red)hi %ansi(blue)michael
currently I can only figure out how to use those codes line by line e.g.
#say {hi michael};#color $CE59CE
(the above example would need to be set to an alias or trigger to work properly I believe)
I cant figure out how to change colors inline
anyway if someone could help me I would appreciate it feel free to e-mail me
sinnerou@gmail.com |
|
|
|
Simucal Beginner
Joined: 26 Sep 2005 Posts: 13
|
Posted: Mon Oct 03, 2005 3:26 pm |
I would use an open MXP command such as:
#say Here is a test: ~<color #CE59CE>hi~</color> ~<color #663473>michael~</color>
Hope this helps! |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: Tue Oct 04, 2005 8:27 am |
Did you try %colorname?
|
|
|
|
Simucal Beginner
Joined: 26 Sep 2005 Posts: 13
|
Posted: Tue Oct 04, 2005 1:08 pm |
lol, Slaem... re-read his question. He wants to be able to use HTML color codes, which is why I suggested the open MXP command
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Oct 05, 2005 12:01 am |
Simucal has the right of it. You can also use the #MXP command just like #SAY or #SHOW; #ECHO has a slightly different behavior. Using #MXP has the benefit that it preforms less parsing of the <> in the command allowing you to more readily type such things without the use of extra tildes (~). Also I believe the MXP specification supports both # and $ for signalling a hexadecimal value. You may need to use $ in scripts where the syntax checker is involved. In any case proper use of quotes can often make the syntax checker happy:
#MXP "Here is a test: <color #CE59CE>hi~</color> ~<color #663473>michael</color>" |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|