Hi all,
I'm very new with Twine and Harlowe, but okay-ish with JS and CSS. I'm looking for a way to set a class for a span (clue!) of text instead of an entire Passage or Story.
Something like
I'm thinking either a macro or something that can automagically surround the given text with a <span> or <div> with the class property set to the given string. I can manage the css for the classes in the Story Stylesheet.
Is there a way (or proper way) to do this?
Cheers,
SQ
I'm very new with Twine and Harlowe, but okay-ish with JS and CSS. I'm looking for a way to set a class for a span (clue!) of text instead of an entire Passage or Story.
Something like
(class: "someClass")[This text will be of class "someClass"] while this will not.
I'm thinking either a macro or something that can automagically surround the given text with a <span> or <div> with the class property set to the given string. I can manage the css for the classes in the Story Stylesheet.
Is there a way (or proper way) to do this?
Cheers,
SQ