Twine not syntax highlighting on old versions of harlowe

Twine Version: 2.9.0

I recently found a cool twine story online and I wanted to import it into twine to see how it worked, but it uses Harlowe 2.1.0 and Twine doesn’t highlight the syntax like it does for current versions. I found the Harlowe 2.1.0 repo but I have no experience with downloading things like that and I’m not sure how to import it as a story format into twine. Would importing the old version of Harlowe as a new story format work, and if so how do I do that?

Here’s something that may help. I never actually added a story format before, but it sounds pretty straight forward.

https://twinery.org/reference/en/story-formats/adding.html

However, are you using the online version or the desktop version? That might change things a bit, maybe.

I am using the desktop version on Mac. Pasting in the repo link gives me an error of “The story format at this address could not be retrieved. (Timeout).”

Is this where you are getting your older story format?

https://twine2.neocities.org/#appendix_previous-harlowe-versions-and-manuals

Harlowe’s old method of syntax highlighting was deprecated in Twine 2.4, in favor of an officially supported method. Probably easiest thing to do is use the browser version of Twine 2.3.6 to view the story.

1 Like

As additional detail I note that the desktop version, at least the one under Linux, has available the last Harlowe 2.x and 1.x story format as built-in (easing legacy code maintenance) so, for the other issue of failed importing of legacy code, try to temporary set Harlowe 2 as default format then try to import the legacy code (perhaps this trick can even give back 2.x highlighting ?)

Best regards from Italy,
dott. Piergiorgio.

1 Like