Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation

vJASS Syntax Highlighter for notepad++ No New Posts WC3 Editing Tools

Started by
moyack

0 Members and 1 Guest are viewing this topic.

Rating

Average Score - 5 / 5

« Created: January 04, 2020, 07:03:04 PM by moyack »

vJASS Syntax Highlighter for notepad++
on: April 05, 2011, 03:43:08 PM
Version: 2.0
Keywords: notepad++, plugin, highlighting
Operating System (OS):
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 10
Tool Category: Text Editor & Highlighter
Rating: 5
Warcraft III Tool resource
« Created: January 04, 2020, 07:04:24 PM by moyack »
« Last Edit: January 07, 2020, 10:51:48 PM by moyack »

Hi guys:

Probably there are people asking... what is Notepad++?? well, this program is a very enhanced notepad, with many (but many) interesting functions to edit, and visualize text. Its features are impressive and they can be seen here.

This program is free and it can be downloaded here.

In the recent versions of this program, they offer the possibility to create a custom Syntax Highlighting and Syntax Folding. After testing and learning about it, I decided to make one for vJASS because I love the highlighting. I think the result is good enough and uses the last JASSHelper syntax, so you will have highlighting for libraries, structs, methods, etc.


New update:
Now in 2020, notepad++ has greatly improved the User Defined Language system (from now on UDL), and with that, several limitations has been overcome with this new version. What this pack offers is an updated list of functions (including the new functions from patches 1.29, 1.30 and 1.31).

This work has been possible thanks to the updated base developed by @nestharus , who has built a tool to generate all the functions in the UDL format. Unfortunately, this xml structure has shown limitations and I was necessary to use the prefix method in several keywords. That means that is you set a custom function that starts with Blz, it will be highlighted as a common.j function.

I think is a small sacrifice for a good highlightning  8)

Notice that the style puts a soft background to the comments, texmacro, strings, rawcodes and textmacro arguments, this to ease the bad typing in the code.

How to install it?? (updated)
First download and install Notepad++ in your PC.

  • Open notepad++.
  • in the 7z file, you'll find out a file named "vJASS Style.xml".
  • Extract "vJASS Style.xml" in a convenient place (downloads, documents, desktop folder... wherever you want).
  • In Notepad++ Open the menu Language > User Defined Language > Define you Language...
  • Select the file "vJASS Style.xml"
  • It's done!!

In order to test it, open a new file, copy a jass, vJASS or zinc code,  select the menu Language > vJASS. You should see highlighted the code in vJASS.

Screenshot

IMPORTANT UPDATE: Now you can use auto completion for vJASS. Select the vJASS.xml file contained in the 7z file, and extract it to Your_Notepad++_Installation_Dir\plugins\APIs (Example: C:\Program Files\Notepad++\plugins\APIs\). Now you can use the auto completion by pressing CTRL+SPACE and you will see the list of functions. Press ENTER to autocomplete the desired text.

This list includes all the commands from common.j, common.ai and Blizzard.j

I hope this can be useful for people new with vJASS. Comments and suggestions are always welcome.

Credits to @nestharus and cipherxof.

Changelog
(07/01/2020)
After 13 years (OMG!! I'm getting old) it has been revamped in functionality.
* Added a bunch of keywords and constants (compatible with the new natives in 1.31)
* Fixed a difference between // comment and //! macro comment.
+ Adapted to the latest version of notepad.


(16/05/2007):
* Minor improvement. Added the [ljass]debug[/ljass] as a keyword, sorry if it doesn't look as something different, but the api auto completion is more useful :P


(15/05/2007):

* Added vJASS.api file, so you can use auto completion in Notepad++
* Removed the constants differentiation to enable common.j and common.ai function highlighting. With this you will now if you are using a function from any of this libraries.


(11/05/2007):

* Added more constants definitions to the highlighter (Thanks Purplepoot)
* Removed the function and method folding so it doesn't generate bugs in notepad++.


(27/03/2009):
* Current version of Notepad++ has changed the API format, so it's mandatory to use this update for the current version of this program (Thanks Flame_Phoenix for the API list)
* Improved a little bit the highlighting and added new keywords.
« Last Edit: January 07, 2020, 10:51:48 PM by moyack »



Re: vJASS Syntax Highlighter for notepad++
Reply #1 on: January 07, 2020, 10:52:44 PM

Proudly updated this plugin for notepad++. Any comments and suggestions are welcome.


 

* Random Tools

Warcraft 3 Launcher

Views: 3016
Replies: 2
Posted by moyack
March 06, 2019, 08:05:53 PM

vrJASS

Views: 5697
Replies: 2
Posted by Ruke
June 02, 2016, 11:00:57 PM

Gmax 1.2

Views: 13266
Replies: 5
Posted by WC3Mod
April 27, 2012, 07:49:05 AM

Oinkerwinkle's Animation Transferer

Views: 275
Replies: 0
Posted by Oinkerwinkle
January 07, 2012, 12:53:18 AM

Magos' War3 Model Editor

Views: 25318
Replies: 4
Posted by magos
August 28, 2011, 11:16:11 PM

Started by Purgeandfire

Replies: 0
Views: 1489
Tutorial Zone

Started by moyack

Replies: 1
Views: 1349
Site Discussion

Started by REDSEW

Replies: 2
Views: 8471
Site Discussion

Started by olofmoleman

Replies: 0
Views: 592
Warcraft III Models
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...