jonbons 13 Posted March 17, 2012 (edited) I use Sublime for a lot of my projects and I always wanted to be able to add syntax highlighting for sqf files, here is a package you can install in Sublime Text 2. Let me know if you have any problems or if there are errors in the syntax highlighting. Download/Information: https://github.com/JonBons/Sublime-SQF-Language Install by running the following command in /Packages git clone git@github.com:JonBons/Sublime-SQF-Language.git "SQF Language" Or Add to the Sublime Package Control repository list. If you have Package Control installed, open Sublime Text and hit CTRL+SHIFT+P and select Package Control: Add Repository and input https://github.com/JonBons/Sublime-SQF-Language/ You will now be able to install/manage via Package Control. Link to Sublime Text 2: (Sublime is shareware, you are not forced to pay for it. If you don't pay for it every once in a while a message will pop up asking if you want to buy it, you can just click No.) http://www.sublimetext.com/2 Edited March 17, 2012 by JonBons Share this post Link to post Share on other sites
sickboy 13 Posted March 17, 2012 (edited) Nice one! Thanks! Btw, forgot quotes at the end, should be: git clone git@github.com:JonBons/Sublime-SQF-Language.git "SQF Language" Also when opening a SQF file, it automatically had detected SQF Language, did not need to set it manually. Edited March 17, 2012 by Sickboy Share this post Link to post Share on other sites
jonbons 13 Posted March 17, 2012 Nice one! Thanks!Btw, forgot quotes at the end, should be: ... Also when opening a SQF file, it automatically had detected SQF Language, did not need to set it manually. Thanks, I was unsure if it would automatically select the highlighter due to me testing this all on one machine and I had messed with a bunch of settings. I've updated the readme with the proper command. Share this post Link to post Share on other sites
Muzzleflash 111 Posted March 22, 2012 This is awesome. Thanks :) Share this post Link to post Share on other sites
Sniperwolf572 758 Posted May 2, 2012 I've been using ST2 for a while now and I've just randomly typed "SQF.tmLanguage" in Google and found your GitHub repo. This really made my morning, thanks! :) Share this post Link to post Share on other sites
sickboy 13 Posted May 2, 2012 I've been using ST2 for a while now and I've just randomly typed "SQF.tmLanguage" in Google and found your GitHub repo. This really made my morning, thanks! :) Im growing fonder by the minute of ST2 myself as well, great editor.Thanks to Banshee for putting me on it's trail, and JonBons for the SQF plug! Share this post Link to post Share on other sites
Shizweak 1 Posted December 7, 2012 Beginner SQF scripter, long time ST user - many thanks for this! Share this post Link to post Share on other sites
jonbons 13 Posted December 30, 2012 I have pushed a commit that adds support for the OA 1.62 and OA 1.63 commands that were listed on the Bohemia Wiki page. Share this post Link to post Share on other sites
DenVdmj 0 Posted January 14, 2013 Great! Good highlighting for the most fappable editor )) Doesn't work highlighting for the hex values, like an 0xA0 Share this post Link to post Share on other sites
jonbons 13 Posted February 24, 2013 I updated the highlighter with some missing arithmetic and comparison operators. Also note that I got a pull request approved to add this language into the official package control repository list. This means on a fresh install of the package control plugin you can search for SQF and find it without needing to add the repository. Share this post Link to post Share on other sites
sickboy 13 Posted February 24, 2013 Nice one JonBons, thanks, appreciate the effort Share this post Link to post Share on other sites
jonbons 13 Posted March 5, 2013 I just pushed a commit that adds the current commands from the arma 3 scripting commands page. https://community.bistudio.com/wiki/Category:Arma_3:_New_Scripting_Commands_List Share this post Link to post Share on other sites
kemo 10 Posted March 7, 2013 this is sweet! Exactly what I was looking for, thanks for sharing! I cant imagine a life without Sublime! Share this post Link to post Share on other sites
jonbons 13 Posted March 7, 2013 I'm currently testing adding sqf to the goto-documentation plugin so if you want to try it out here is the instructions. How to use with Package Control: Ctrl + Shift + P Type "add repo" Click "Package Control: Add Repository" Paste this link: https://github.com/JonBons/sublime-text-2-goto-documentation-sqf Afterwards just do Install Package and type "sqf" Then click the package "sublime-text-2-goto-documentation-sqf" You then need to add the keybind Preferences -> Key Bindings - User Add keybind: { "keys": ["f1"], "command": "goto_documentation" } Now you can simply select the text you want to search the BIKI for and then press F1 and it will open a browser window to the BIKI. 1 Share this post Link to post Share on other sites
cuel 25 Posted November 5, 2013 Started using this. It's great. Suggestion: add BIS_fnc_* to "existing" commands Can you change anything regarding the auto indent? Currently it does this original: [] spawn { waitUntil {time > 0}; player switchMove "amovpercmstpslowwrfldnon"; }; auto-indent: [] spawn { waitUntil {time > 0}; player switchMove "amovpercmstpslowwrfldnon"; }; Share this post Link to post Share on other sites
UbiquitousUK 11 Posted November 13, 2013 Awesome work. I am transitioning from emacs to ST2 for my work and your syntax highlighting gives me a personal reason to enjoy the move. Share this post Link to post Share on other sites
jonbons 13 Posted November 20, 2014 I just got a pull request from a Github staff member to add a license so that they can integrate the highlighter into Github's syntax highlighting so hopefully that will show up soon on GH projects. I already noted that when searching on Github by language SQF is now an option. I also did a quick update to add some missing commands that were added before v1.34. Share this post Link to post Share on other sites
clawhammer 10 Posted July 24, 2016 I tried to install this on my ubuntu server machine with the newest version of gitlab. Iam getting this error: Permission denied (publickey).fatal: Could not read from remote repository. What can i do? Thanks! Share this post Link to post Share on other sites