Sublime Text 3+ syntax/commenting/code highlights for SLiM

118 views
Skip to first unread message

Christopher McAllester

unread,
Jun 13, 2021, 3:59:07 PM6/13/21
to slim-discuss
Hi all,

This might be the right place to share a coding syntax file? I run SLiM almost exclusively on a computing cluster with jobs delivered via HTCondor, so I'm often editing peripheral scripts at the same time as SLiM once the basic simulation script is done. It's helpful to be able to have all scripts and text files in the same editor at that time, and I use Sublime Text, for which I copied and edited the R syntax file to generate a SLiM syntax for scripts, to allow code highlighting and use of the commenting hotkey. (The syntax file doesn't conflict with the built-in R syntax.)

So, to use the attached with Sublime, go to preferences -> Browse Packages, then extract the attached SLiM folder into this Packages folder. Re-opening Sublime or opening and saving the two files in Sublime should then make 'SLiM' available as a Sublime syntax.

Let me know if that's helpful or does not work, or there are missing features,
Best,
Chris
SLiM_sublime_syntax.tar.gz

Ben Haller

unread,
Jun 13, 2021, 5:21:47 PM6/13/21
to slim-discuss
Wow, this is very cool, Chris.  Thanks for sharing it!

Cheers,
-B.

Benjamin C. Haller
Messer Lab
Cornell University


Christopher McAllester wrote on 6/13/21 3:59 PM:
--
SLiM forward genetic simulation: http://messerlab.org/slim/
---
You received this message because you are subscribed to the Google Groups "slim-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slim-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slim-discuss/b655cc24-17c3-4197-92ca-bd60691e31bbn%40googlegroups.com.

bcar...@mtroyal.ca

unread,
Jun 14, 2021, 7:49:50 PM6/14/21
to slim-discuss
That's really interesting. If I knew enough C++ or Qt, I would "extract" the checkScript code to create a separate command program that I could use for linting in Emacs with FlyCheck. Woes!
Reply all
Reply to author
Forward
0 new messages