1. Are you planning to upload your awesome tool to Hive? Please review the rules here.
    July 9, 2018: The rules for the Tool Section have been revised. Please be sure to read the revisions.
    Dismiss Notice
  2. The poll for our 11th Music Contest is up! Help us choose the most awesome cinematic tracks by casting a vote!
    Dismiss Notice
  3. Melee Mapping contest #3 - Poll is up! Vote for the best 4v4 melee maps!
    Dismiss Notice
  4. The 30th edition of the Modeling Contest is finally up! The Portable Buildings need your attention, so come along and have a blast!
    Dismiss Notice
  5. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice

SublimeText JASS

Submitted by Ruke
This bundle is marked as approved. It works and satisfies the submission rules.
This tool originates from here

Most of you probably know what SublimeText is, if you don't, just check this out: http://www.sublimetext.com/

I like this editor (even more than Notepad++ <.<) and I also liked the idea of being able to code for W3 in it, so I did the syntax definition for JASS (includes cJASS and vJASS).

If you want, you can help to improve this addon: https://github.com/Ruk33/SublimeText-JASS

Credits goes for:
+ muZk
+ SublimeText 2/3
+ AAAPackageDev
+ C, C++, PHP & Javascript which I take them as templates
+ http://bakingcode.com/development/creando-un-tmlanguage-para-sublime-syntax-definition/ comment-blocks

Hopefully I didn't forget anyone.

Enjoy it.

edit: Created the default Newgen theme :)
edit: Added auto-completation
edit: Now works on SublimeText 3 too!

Keywords:
Sublime Text, syntax definition, jass, cjass, vjass
Contents

SublimeText JASS (Binary)

Reviews
Moderator
19:07, 8th Oct 2013 PurgeandFire: Approving it for now since it works well. Still waiting on the common.ai though. ;)
  1. 19:07, 8th Oct 2013
    PurgeandFire: Approving it for now since it works well. Still waiting on the common.ai though. ;)
     
  2. musk

    musk

    Joined:
    Dec 31, 2009
    Messages:
    14
    Resources:
    0
    Resources:
    0
    Finally a decent editor for war3 large projects :grin:
     
  3. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,418
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Add common.ai natives and it will be ready to be approved. :)
     
  4. mijustin

    mijustin

    Joined:
    Apr 21, 2012
    Messages:
    44
    Resources:
    0
    Resources:
    0
    cool. pls improve
     
  5. edo494

    edo494

    Joined:
    Apr 16, 2012
    Messages:
    3,855
    Resources:
    5
    Spells:
    1
    JASS:
    4
    Resources:
    5
    no ZINC support? :( :D
     
  6. Arie

    Arie

    Joined:
    Apr 13, 2008
    Messages:
    3
    Resources:
    0
    Resources:
    0
    I.... love it
     
  7. Ezekiel12

    Ezekiel12

    Joined:
    Mar 13, 2012
    Messages:
    1,052
    Resources:
    0
    Resources:
    0
    Would it be possible to include that every function call to a self defined function is a link to the actual function :)?
     
  8. Ruke

    Ruke

    Joined:
    Sep 19, 2011
    Messages:
    517
    Resources:
    7
    Tools:
    1
    Spells:
    5
    Wurst:
    1
    Resources:
    7
    it does supports zinc

    ?
     
  9. chobibo

    chobibo

    Joined:
    Sep 24, 2005
    Messages:
    2,692
    Resources:
    0
    Resources:
    0
    I think he means user defined functions, like the ones you put inside the include folder for tesh. Maybe.
     
  10. Quilnez

    Quilnez

    Joined:
    Oct 12, 2011
    Messages:
    3,163
    Resources:
    37
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    2
    JASS:
    4
    Resources:
    37
    Have followed the instructions still doesn't work..

    I'm using Sublime Text 2 btw

    Guess I'm doing it right
    ss.jpg
    It's plain white and nothing. I have activated Newgen color scheme btw.
     
  11. edo494

    edo494

    Joined:
    Apr 16, 2012
    Messages:
    3,855
    Resources:
    5
    Spells:
    1
    JASS:
    4
    Resources:
    5
    my guess is the file must have .j extension, thats how subline works, it will not highlight HTML code in .cpp file and vice versa
     
  12. Malhorne

    Malhorne

    Joined:
    Sep 14, 2012
    Messages:
    2,336
    Resources:
    6
    Spells:
    4
    Tutorials:
    1
    JASS:
    1
    Resources:
    6
    Okay basically the solution to make it work (at least for sublime-text2 on Linux) is to change the extension to tmLanguage (notice the 'L' and not 'l')
     
  13. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,418
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    Could you fix this to work with single-line block comments? i.e.:
    Image

    Screen Shot 2017-01-17 at 11.51.14 AM.png
     
  14. Tommi Gustafsson

    Tommi Gustafsson

    Joined:
    May 26, 2017
    Messages:
    208
    Resources:
    6
    Tools:
    1
    Maps:
    2
    Tutorials:
    3
    Resources:
    6
    The installation instructions for Sublime Text 3 are wrong. Here's how you install it:

    1. Open Sublime Text 3, and go to Preferences -> Browse Packages...
    2. In the opened file browser's window, copy jass.tmlanguage there.
    3. Restart Sublime Text 3.
    4. Open .ai or .j file
    5. View -> Syntax -> Open all with current extension as... -> JASS (Warcraft III)

    Best regards,
    Tommi