I'm writing a story with multiple characters, and I've been using basic HTML (as in <font color = "#hexcode"> html) in order to change the font colors.
There's a problem, though - I can't make the text red, which I need to do for one of my characters. Whenever I try to input the code, it turns the text green instead -
#980000, the desired color, shows up as
#38761d (another character's color, who appears later in the story); and when I tried to make the text bright red, it showed up as neon green instead.
I'm not experienced with HTML, so I have no clue what's going wrong. Can anyone help?
(This was reposted from an earlier discussion, from about a month ago - I forgot to set it as a question, and it got no responses anyway.)
Comments
You should either be using proper HTML markup or Harlowe's (color:) macro.
If you wanted to use HTML markup, the way to do that would be something like the following:
Though I'd recommend defining a class style based on the character's name and use that. For example: (goes in Story Stylesheet) Usage:
Alternatively, using the (color:) macro would look like the following:
1. example passage text:
2. example CSS to style each character:
I'll probably be going with Exile's class style suggestion for now, but I'll keep the named hooks in mind as well.
I went with classes because that's the first thing I thought of and it works in all story formats.
Using named hooks, as greyelf suggests, is probably the more idiomatic way to do it in Harlowe—bit shorter as well. As a bonus, any of Harlowe's macros that target hooks would be usable on them, so that's another possible consideration in favor of using the hook method.