Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Set a class for a particular text [Harlowe]

$
0
0
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
(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

Viewing all articles
Browse latest Browse all 1844

Trending Articles