![]() |
#1 |
Free Software Terrorist
Technical Director
|
![]() NOTE: You have been redirected in order for our attachments to be made available to you. This will only last two minutes; these measures where taken to avoid hotlinking and bandwidth theft. To avoid these restrictions Log in or Register I've been starting to love the text editor called jEdit. It is very flexible, it is cross platform, it has INDENTATION-BASED FOLDING. And well... So much that I made edit modes for zinc and vjass for jEdit so that it can highlight them
jEdit jEdit is free as in beer and freedom, so you may download it for free, it also supports windows, OS/X and Linux just fine. But it requires the Java runtime environment. So, you'll need to download and install it in your OS: http://www.jedit.org/ The files The zip file contains three xml files which you should copy to a sub-folder called modes which is inside your jEdit settings directory. After copying the files, you need to add a catalog entry. To this, open the file called 'catalog' that is inside your modes folder, it should look like this: Code:
<?xml version="1.0"?> <!DOCTYPE MODES SYSTEM "catalog.dtd"> <MODES> <!-- Add lines like the following, one for each edit mode you add: --> <!-- <MODE NAME="foo" FILE="foo.xml" FILE_NAME_GLOB="*.foo" /> --> </MODES> Code:
<MODE NAME="wc3-jass" FILE="jass.xml" FILE_NAME_GLOB="{*.ai,common.j,blizzard.j}" /> <MODE NAME="wc3-vjass" FILE="vjass.xml" FILE_NAME_GLOB="{!{common,blizzard}}.j" /> <MODE NAME="wc3-zinc" FILE="zinc.xml" FILE_NAME_GLOB="*.zn" /> Then save it. Now: * If you open blizzard.j, common.j or an .ai file, you get JASS2 syntax highlight (without vJass extensions) * If you open other file ending with .j, you get vJass highlighting. * If you open a file with extension .zn you get Zinc highlighting. * If you want to change to one of the modes when when editing a file, you may go to utilities\buffer options and then find the modes called "wc3-jass", "wc3-vjass" and "wc3-zinc". If you want to change the color/format of a syntax element, select it and then go to Utilities\Quick settings\Edit syntax style of token under carret. This thing is very powerful, first time since gvim I am able to actually have correct code folding, nested /* */ comments, and line breaks inside strings. Plus it is not as hard as gvim, so... Edit: Also, for example, The contents //! zinc tags inside a vJass file will switch to zinc highlighting mode. And //! novjass will switch to Jass2 mode. That's cool? I managed to actually highlight stuff inside preprocessor lines, but they won't highlight elsewhere... Assorted jEdit tips * You should probably go to global options the first time to tweak jEdit, its default config are kinda strange... For example, to disable the periods at the end of the lines go to the "Global options" button, then "Text Area" then uncheck "end of line markers" * You can make it use tabs: Go to plugins and install two plugins: "BufferTabs" and "GNURegexp", let it download and install those plugins then go to plugin options and go to the BufferTabs part to enable them. * To have cute indentation markers like in the screenshot, install the Whitespace plugin. * This can do autocomplete: Whenever you can't think of a keyword/native/bj function name, press ctrol+b after typing something. |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
Free Software Terrorist
Technical Director
|
![]() Bump, now highlights Jass2, vJass and zinc.
|
![]() |
![]() |
![]() |
#3 |
User
Join Date: Mar 2009
Posts: 1,079
![]() ![]() |
![]() vJass or vJass2?
__________________How is this better as JassHelper? What do we have to keep in mind / which operating systems? Does it include write suggestions? Does it provide us with the function to generate prepared code snippets? |
![]() |
![]() |
![]() |
#4 |
User
Join Date: Jan 2007
Posts: 542
![]() ![]() ![]() |
![]() Half of your questions could be answered by something as simple as reading the post.
__________________ |
![]() |
![]() |
![]() |
#5 | ||||
Free Software Terrorist
Technical Director
|
![]() Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#6 | ||||
User
Join Date: Mar 2009
Posts: 1,079
![]() ![]() |
![]() Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#7 |
100% Genuine Retard!
|
![]() Thanks Vex, I've also been using jEdit, now I don't need to open WE for quick edits yeah!
__________________ |
![]() |
![]() |
![]() |
#8 | |
Free Software Terrorist
Technical Director
|
![]() Quote:
jasscraft? Well, these files won't make it do autocompletion or able to call pJASS directly, but jEdit will be able to do correct vJass syntax highlighting and also Zinc. |
|
![]() |
![]() |
![]() |
#9 | ||
Obscurity, the Art
|
![]() This is totally going to be a spam post, but it's really worth it.
Quote:
I tested this: It is kind of cool, but a few things I don't like. Apparently scope and their initializer declarations don't highlight at all, even in the vjass edit mode. (I made sure I was using that) I attached a screenshot of this. The file I loaded was a non-common/blizzard .j file. (One for my own map) Last edited by Rising_Dusk : 10-23-2009 at 03:34 PM. |
||
![]() |
![]() |
![]() |
#10 | |
User
Join Date: Mar 2009
Posts: 1,079
![]() ![]() |
![]() To get the vJass Syntax Heighlighting,
such as you should have the heighlight settings as following (Open it with Utilities - Global Options - jEdit - Syntax Heighlighting) edit: Quote:
I bet 99% of the wc3 mappers don't know this. And if you excuse me, I am willing to learn, so what about it? Last edited by Anachron : 10-23-2009 at 03:30 PM. |
|
![]() |
![]() |
![]() |
#11 | ||
Obscurity, the Art
|
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#12 |
Free Software Terrorist
Technical Director
|
![]() Blizzard named it JASS2. Rumors say it stands for "Just Another Scripting System" but that's just a rumor, no one knows for sure.
__________________The 2 is rumored to come from the fact that there was another thing called JASS that was different. I named the other one vJass. Why? Well, it is a long story, officialy v stands for very, I think. Checked the plugins section, there is a text autocomplete plugin that is smart and autocompletes based on things already on the file, so in the long run it makes things faster. There are also many things in there, looking for one that would add markers to lines that were modified... There is a plugin called whitespace that will add cute lines to your identation, makes things easier to find... edit: oh, and I have updated it, added highlight for then, initializer, scope and endscope ... |
![]() |
![]() |
![]() |
#13 | |||||
User
Join Date: Mar 2009
Posts: 1,079
![]() ![]() |
![]() Quote:
Quote:
Quote:
Quote:
Quote:
Edit: Syntax heighlighting for constants please, such as EFFECT_TYPE_LIGHTNING. Edit2: agent is not highlighted. Last edited by Anachron : 10-23-2009 at 03:54 PM. |
|||||
![]() |
![]() |
![]() |
#14 | |
Obscurity, the Art
|
![]() All keywords I use appear to work now. I am going to hopefully assume that you tested all of the obscure vJass ones that I don't use and that you'll update this if anything gets added/removed from jasshelper in the future. Furthermore, a last question is how do you get rid of those periods at the end of every line? I really don't like them and would probably use this were it not for those.
__________________Oh and yes, because I tested this and it works as listed and is very, very useful, I am going to approve it. Also, because it's made by Vex, maybe it'll actually be kept up to date with jasshelper. (Which would be more useful than anything else this does) Quote:
Last edited by Rising_Dusk : 10-23-2009 at 03:51 PM. |
|
![]() |
![]() |
![]() |
#15 | |
Free Software Terrorist
Technical Director
|
![]() Quote:
global options\text area\end of line markers I hate them too, for some reason there are programmers who love them. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|