As I've mentioned before, I am very green as far as JavaScript is concerned, so the code I'm using is something I found on StackOverflow. Essentially, I'd like to be able to edit my passages in Notepad++ and then link to those files within the passages. Is this possible how I'm attempting it (or in any other way)?
I use notepad++ for big passages with a lot of code. I set up a custom language for the macros I use most often in SugarCube. Then I just copy-paste whatever I have done in notepad++ back over to the equivalent Twine passage once I'm done editing.
This is it, if you'd like to use it. It's meant to be used with the Mono Industrial theme so you might have to change the colors to suit your needs.
I use notepad++ for big passages with a lot of code. I set up a custom language for the macros I use most often in SugarCube. Then I just copy-paste whatever I have done in notepad++ back over to the equivalent Twine passage once I'm done editing.
This is it, if you'd like to use it. It's meant to be used with the Mono Industrial theme so you might have to change the colors to suit your needs.
I installed that XML file awhile back (if it's the same as this one, that is). I just switched to Mono Industrial per your suggestion but all my text has a white background. Did I fudge something when I was defining the language or did I make some other error?
I think notepad++ has trouble with exporting see through backgrounds. You can go into the language, to edit it and right click on the secondary color for all the styles except comments to fix it.
You can also change it up for yourself if you need to style different tags and such. Just take a look at the delimiters and it's pretty self explanatory.
I rather like the formatting in general. It's a fair bit easier on the eyes, but the syntax highlighting seems a little off, or inconsistent, on my end. Still, cheers.
Comments
This is it, if you'd like to use it. It's meant to be used with the Mono Industrial theme so you might have to change the colors to suit your needs.
Here's the download for the xml.
SugarCube UDL.xml
I installed that XML file awhile back (if it's the same as this one, that is). I just switched to Mono Industrial per your suggestion but all my text has a white background. Did I fudge something when I was defining the language or did I make some other error?
You can also change it up for yourself if you need to style different tags and such. Just take a look at the delimiters and it's pretty self explanatory.
That's a fair point and I honestly forgot I had even been doing that.