View Full Version : SQF Syntax Highlighter for Sublime Text 2
JonBons
Mar 17 2012, 01:52
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
http://puu.sh/l6sK
Install by running the following command in /Packages
git clone git@<hidden>: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
Sickboy
Mar 17 2012, 07:39
Nice one! Thanks!
Btw, forgot quotes at the end, should be:
git clone git@<hidden>: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.
JonBons
Mar 17 2012, 22:15
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.
Muzzleflash
Mar 22 2012, 14:37
This is awesome. Thanks :)
Sniperwolf572
May 2 2012, 08:30
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! :)
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!
Shizweak
Dec 7 2012, 00:58
Beginner SQF scripter, long time ST user - many thanks for this!
JonBons
Dec 30 2012, 06:03
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.
DenVdmj
Jan 14 2013, 20:02
Great! Good highlighting for the most fappable editor ))
Doesn't work highlighting for the hex values, like an 0xA0
JonBons
Feb 24 2013, 06:06
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.
Sickboy
Feb 24 2013, 09:36
Nice one JonBons, thanks, appreciate the effort
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
this is sweet! Exactly what I was looking for, thanks for sharing! I cant imagine a life without Sublime!
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.