Page 1 of 2 12 LastLast
Results 1 to 10 of 17

  Click here to go to the first Developer post in this thread.  

Thread: SQF Syntax Highlighter for Sublime Text 2

  1. #1

    SQF Syntax Highlighter for Sublime Text 2

    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
    Code:
    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
    Code:
    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
    Last edited by JonBons; Mar 17 2012 at 16:35.

  2. #2
    Nice one! Thanks!

    Btw, forgot quotes at the end, should be:
    Code:
    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.

  3. #3
    Private First Class JonBons's Avatar
    Join Date
    Aug 15 2011
    Location
    Oklahoma
    Posts
    20
    Author of the Thread
    Quote Originally Posted by Sickboy View Post
    Nice one! Thanks!

    Btw, forgot quotes at the end, should be:
    Code:
    ...
    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.

  4. #4
    This is awesome. Thanks

  5.   This is the last Developer post in this thread.   #5
    Warrant Officer Sniperwolf572's Avatar
    Join Date
    Feb 23 2004
    Location
    Bosnia & Herzegovina
    Posts
    2,621
    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!

  6. #6
    Quote Originally Posted by Sniperwolf572 View Post
    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!

  7. #7
    Beginner SQF scripter, long time ST user - many thanks for this!

  8. #8
    Private First Class JonBons's Avatar
    Join Date
    Aug 15 2011
    Location
    Oklahoma
    Posts
    20
    Author of the Thread
    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.

  9. #9
    Great! Good highlighting for the most fappable editor ))
    Doesn't work highlighting for the hex values, like an 0xA0

  10. #10
    Private First Class JonBons's Avatar
    Join Date
    Aug 15 2011
    Location
    Oklahoma
    Posts
    20
    Author of the Thread
    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.

Page 1 of 2 12 LastLast

Similar Threads

  1. Notepad++ SQF syntax highlight
    By nicolasroger in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 31
    Last Post: Dec 29 2012, 23:43
  2. Wresting with SQF syntax
    By Slapstick in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 5
    Last Post: Jan 3 2012, 03:21
  3. Help with Init.sqf syntax
    By rscarrab in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 0
    Last Post: May 3 2011, 17:24
  4. Wrong SQF Syntax?
    By IndeedPete in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 5
    Last Post: Jul 23 2009, 22:44
  5. SQF syntax question
    By GefrManny in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Feb 22 2007, 16:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •