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. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  5. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  6. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

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,427
    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,053
    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,250
    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,340
    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,427
    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:
    280
    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
     
  15. pusha1999

    pusha1999

    Joined:
    Jan 7, 2014
    Messages:
    67
    Resources:
    0
    Resources:
    0
    where i should edit to add new functions?