Sublime Text 3 Syntax Highlight for *.tid files

57 views
Skip to first unread message

Roma Hicks

unread,
Dec 9, 2015, 10:57:56 PM12/9/15
to TiddlyWikiDev
I didn't actually look to see if anyone has already done this, but getting back to work on my TW5 projects I decide I was tired of looking at white, walls of tiddler text.  Some of my macros can be huge and some colour makes it easier to read.  So a spent the afternoon hacking a syntax file for Sublime Text 3. 

It is based off the XML, not HTML syntax.  There is still some regex cruft in the source.  I based syntax scopes off those found in the Monokai colour theme; other themes that I used appeared acceptable.  

Try it out.  I won't spend a lot of time maintaining it other than to keep it working, but I will gladly accept any improvements through pulls.  If someone has a more mature, simlar project let me know!


PMario

unread,
Dec 10, 2015, 2:08:43 AM12/10/15
to TiddlyWikiDev
Hi,
Nice work! Thx for sharing.
-m

Tobias Beer

unread,
Dec 10, 2015, 3:50:07 AM12/10/15
to TiddlyWikiDev
Hi Roma,

Really cool! Can you be a little less restrictive when it comes to tiddler fields?

Perhaps:

<string>Tiddler field names.</string>
<key>match</key>
<string>^[\$\-\_\w]+\:</string>

Best wishes,

Tobias.

Roma Hicks

unread,
Dec 10, 2015, 9:16:43 AM12/10/15
to TiddlyWikiDev
Sure, I wasn't sure what naming restrictions there were on fields off-hand and I am not quite as proficient at regular expressions as I would like to get all cases.  Thanks.  Well get this pushed later today. 

Tobias Beer

unread,
Dec 10, 2015, 2:11:40 PM12/10/15
to TiddlyWikiDev
Hi Roma,

I have shied away from regex for a long time, as well ...things like http://regexper.com (thanks Jeremy) and knowing the right terms, e.g. "quantifiers" and "characters" help finding the right details, if only:


Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages