Hi Guys,
I’m a new user of Sublime, and so far I’m in love. It looks great, it’s lightweight, and it does a lot of good stuff. But I need some help with configuring it. I’m an amateur writing a text game in a very strange syntax (Twine/Sugarcube), and I’m hoping to adjust the editor to fit my needs. I’ll start with showing you an example of my code:
<<events>>
<<EVENT "str=10">>
<<chunks>>
<<media "test.gif">>
<p>You hear knocking to the door.</p>
<<dial "player" "Yes?">>
<<dial "monster" "Boo!">>
<<btn>>
<<chunk>>
<p>You open the doors.</p>
<<media "monster.gif">>
<<btn $curLoc null "fear+1">>
<</chunks>>
<<EVENT "str=15">>
<<chunks>>
<<btn "#exit">>
<</chunks>>
<</events>>
So as you can see it’s a mix of HTML and something else. Please ignore the fact that it’s probably written in a lame way or something - as said, I’m an amateur. As for the things that I was hoping Sublime could do:
-
Folding of sections. I’ve managed to install SyntaxFold and configure it so that it hides the content of “chunks” - which is what I needed - but is there any way to make it happen as a default when I open the file, or when I paste the contents of the file (because Twine doesn’t have a proper code editor, I’m copying/pasting stuff from there to Sublime and then back). Also, is there any way to just have a button next to a foldable section that folds the section (I know there’s a little tic when the section is already folded, but I need a tick when it’s unfolded too).
-
How to make Sublime recognize the code as HTML and load it as soon as I paste the code in. Or is there any way to just set HTML as default?
-
How to modify the HTML syntax, change the quote highlighting to something less intrusive, and add a separate color highliting to all the stuff between << and >>, which is a default Twine syntax?
Thank you!