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.


Re: vJASS Syntax Highlighter for notepad++
Reply #2 on: August 12, 2022, 06:07:23 PM

New version posted here: https://wc3modding.info/172/vjass-syntax-highlighter-for-notepad/

Moyack thanks for your highlighter, without you I'd have never attempted the new version! I started it from scratch, but I really needed a brief look at what you've done to get interested... OK ok it also needed fixes to be useful  ;D



 

* Random Tools

Warcraft 3 Launcher

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

PJass updates

Views: 3686
Replies: 2
Posted by LeP
December 05, 2014, 02:27:07 PM

MDLVis

Views: 21840
Replies: 4
Posted by WC3Mod
February 19, 2011, 10:41:41 PM

NeoDex 2.7

Views: 5526
Replies: 0
Posted by BlinkBoy
November 20, 2010, 09:02:36 PM

GMSI

Views: 4072
Replies: 0
Posted by gekko
November 20, 2010, 09:02:36 PM

Started by Purgeandfire

Replies: 0
Views: 2566
Tutorial Zone

Started by moyack

Replies: 1
Views: 3093
Site Discussion

Started by REDSEW

Replies: 2
Views: 17913
Site Discussion

Started by olofmoleman

Replies: 0
Views: 1908
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...