Been playing for ~6 months, now trying to make a mod...
What's the correct way to highlight various elements within a programmatically constructed paragraph? I'm calling highlightFirstInLastPara immediately after adding the text which contains the element to be highlighted, but in most cases nothing appears highlighted, and at most only one element is (it seems to be always the last one, and only if no more text is added to the paragraph afterwards.)
Instead of making multiple calls to appendToLastParagraph and highlightFirstInLastPara, should I construct the paragraph text and highlighting separately myself, and then pass this information in one call to each?