View Single Post
Wliu
Veteran Member
Join Date: Apr 2013
Old 01-17-2015 , 20:57   Re: [TOOLS] Atom Sourcepawn Syntax Highlighting v0.3.1
Reply With Quote #14

Quote:
Originally Posted by r3dw3r3w0lf View Post
If you could make a package for it that allows us to compile scripts using 'spcomp.exe', I would love you forever.
So I've made some nice progress on this. It works (only tested on Linux, may or may not work on Windows/Mac) with a few caveats:
  • It comes bundled with 'spcomp' and 'spcomp.exe' which is pretty ugly, but I don't know how to do it otherwise
  • It can't compile files that are not in the same directory as the 'include' folder (eg 'scripting/freaks/default_abilities.sp')
  • You can only tell if it compiled successfully by opening up the dev console (this is only because Atom highly recommends that packages don't use notifications yet as the API for that is still unstable)
Other than that, it works like a charm . I plan to release it as soon as I can fix the above issues. If possible, I'd also like to make it able to lint the file you're currently working on.

It's not published yet because I'd like to get it integrated with the Linter plugin first, but if you'd really like to try it out, just download it here and place it in ~/.atom/packages/sourcepawn-compiler. Run it by going to Packages-->Compile Sourcepawn-->Compile (or you could add a keyboard shortcut for even more convenience). And finally, if you want to enable notifications, go into /lib/sourcepawn-compiler.coffee and uncomment atom.notifications.add.
__________________
~Wliu
Wliu is offline