ID:260432
 
Applicable Configuration:
BYOND Version: 402.964
Operating System: Windows XP


Descriptive Problem Summary: Although you can use other basic colors such as blue, yellow, green, red, and etc. you can't use orange without using a hexadecimal code in the output window.


Code Snippet (if applicable) to Reproduce Problem:
mob
verb
test()
src << "<font color = orange>test</font>"


Expected Results: test

Actual Results: [blank]

Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
On other computers? Not sure

Workarounds: Using hexadecimal color codes such as : #ff5f00

yep this happened to me too, didn't know it was a bug though.
This isn't a bug, just a lack of a feature. At any rate it's good that it's parsing the malformed HTML at all. There should not be any space between the color attribute and the value.

Lummox JR
Mecha Destroyer JD wrote:
> mob
> verb
> test()
> src << "<font color = orange>test</font>"
>


Although I will verify that 'orange' as a parameter doesn't work. For future reference, HTML doesn't work that way. The only spaces should be in between params. For example:
<font color='orange' size='3'>

It's bad practice (and I'm unsure if it would even work) to put spaces before or after an equals sign.

It's also good practice to encase your HTML in either single (') or double(") quotation marks. (Everyone says use double, but I use single, and it passes validation tests.)
In response to Lummox JR
Alright, I was unsure of where to put it but I'll keep the "proper" way of doing it in mind although it isn't completely necessary in DM at least..
In response to Mecha Destroyer JD
Mecha Destroyer JD wrote:
Alright, I was unsure of where to put it but I'll keep the "proper" way of doing it in mind although it isn't completely necessary in DM at least..

That's where you'd be wrong. There are extremists out there who will say "You shouldn't use font! You should use <span style='color: orange;'>" but you can ignore them. However, you should try and keep to using at least a proper form of HTML. If you do not, things can turn screwy.