Velocity Editor Support - plugin detail

VTL (Velocity Template Language) edit support for the NetBeans IDE.

NetBeans Plugin - Velocity Editor Support
Plugin owner: wjaeger
Website: https://sourceforge.net/projects/velocity-editor/
Added: 2011-04-26
License: CDDL
Category: Programming Languages
Downloaded: 7,513 times
Rating:
 4.27, by 9 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.06 MB   Last Update: 2014-08-22

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

For version 2.2.4
  • Upgraded to run under NetBeans 8.0
For version 2.2.3
  • unparsed content (#[[ ]]#) is now recognized
  • Upgraded to run under NetBeans 7.0
For version 2.2.2
  • Upgraded to run under NetBeans 6.9
For version 2.2.1
  • Bugfix: adding already existing code folds
  • Bugfix: adding multi line comment at the end causes IDE to hang
  • Bugfix: syntax color lost when editing references, single line comments and string literals
  • Bugfix: brace match at the end of file causes illegal position exception
For version 2.2.0
  • support for braces matching (#ForEach .. #end, #if .. #end, #elsif .. #end, #else .. #end and #macro .. #end ) added
For version 2.1.0
  • supports code folding for #ForEach, #if, #elsif, #else and #macro directives
  • syntax coloring for include directive added (but no processing of the included template)
  • macro calls a now recognized
  • does now correctly color escaped directive in text color instead of directive color
  • foreach directive now supports object array and vector as argument after the 'in' keyword
  • error stripe status indicator works now
For version 2.0.0
  • completely revised version, no longer based on deprecated NBS (NetBeans Schlieman), instead it is now based on a javacc 5.0 defined grammar (*.jj) definition.


Verifications for NetBeans versions

8.0 verification PASSED See verification details
Download plugin   Download size: 0.06 MB   Last Update: 2013-06-02

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Binary for NetBeans 7.3

Verifications for NetBeans versions

7.3 verification PASSED See verification details
Download plugin   Download size: 0.05 MB   Last Update: 2012-10-10

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Upgraded to run under NetBeans 7.2

Verifications for NetBeans versions

7.2 verification PASSED See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2012-04-03

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

For version 2.2.3
  • unparsed content (#[[ ]]#) is now recognized
  • Upgraded to run under NetBeans 7.0
For version 2.2.2
  • Upgraded to run under NetBeans 6.9
For version 2.2.1
  • Bugfix: adding already existing code folds
  • Bugfix: adding multi line comment at the end causes IDE to hang
  • Bugfix: syntax color lost when editing references, single line comments and string literals
  • Bugfix: brace match at the end of file causes illegal position exception
For version 2.2.0
  • support for braces matching (#ForEach .. #end, #if .. #end, #elsif .. #end, #else .. #end and #macro .. #end ) added
For version 2.1.0
  • supports code folding for #ForEach, #if, #elsif, #else and #macro directives
  • syntax coloring for include directive added (but no processing of the included template)
  • macro calls a now recognized
  • does now correctly color escaped directive in text color instead of directive color
  • foreach directive now supports object array and vector as argument after the 'in' keyword
  • error stripe status indicator works now
For version 2.0.0
  • completely revised version, no longer based on deprecated NBS (NetBeans Schlieman), instead it is now based on a javacc 5.0 defined grammar (*.jj) definition.


Verifications for NetBeans versions

7.1 verification PASSED See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2012-04-03

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

For version 2.2.3
  • unparsed content (#[[ ]]#) is now recognized
  • Upgraded to run under NetBeans 7.0
For version 2.2.2
  • Upgraded to run under NetBeans 6.9
For version 2.2.1
  • Bugfix: adding already existing code folds
  • Bugfix: adding multi line comment at the end causes IDE to hang
  • Bugfix: syntax color lost when editing references, single line comments and string literals
  • Bugfix: brace match at the end of file causes illegal position exception
For version 2.2.0
  • support for braces matching (#ForEach .. #end, #if .. #end, #elsif .. #end, #else .. #end and #macro .. #end ) added
For version 2.1.0
  • supports code folding for #ForEach, #if, #elsif, #else and #macro directives
  • syntax coloring for include directive added (but no processing of the included template)
  • macro calls a now recognized
  • does now correctly color escaped directive in text color instead of directive color
  • foreach directive now supports object array and vector as argument after the 'in' keyword
  • error stripe status indicator works now
For version 2.0.0
  • completely revised version, no longer based on deprecated NBS (NetBeans Schlieman), instead it is now based on a javacc 5.0 defined grammar (*.jj) definition.


Verifications for NetBeans versions

7.0 verification PASSED See verification details


Introduction

Provides basic support to Velocity's *.vm and *.vsl files. Syntax coloring, basic error highlighting and braces matching is achieved with a lexer and parser based on Apache Velocity's 1.6.2 specification and compiled with JavaCC 5.0.

Current Version:

Supports syntax- error highlighting, code folding and braces matching.

Known issues:

  • It should be checked, that the number of arguments in a macro call is the same as in the corresponding macro definition.
  • No syntax coloring for directives #parse, #evaluate, #define
  • Escaped variables, properties and methods should be in text color instead of identity color
  • Variable, property or method in double quotes are not recognized.

Feedback would be very much appreciated.

[ You have to be logged in to be able to comment. ]

User Comments

  

Need Netbeans 8.0 Support.

Please support netbeans 8.0
Posted by venkatramakkineni on Aug 21, 2014
  

not working in netbeans 7.2?

Plugin sounds good but is not working for me. I'm running Netbeans 7.2. The .vm file is recognised and shows a nice little icon but the syntax highlighting is not working at all with some incorrect errors showing and some incorrect highlighting, mostly unhighlighted.

Any plans to release this for 7.2 soon? Or does anyone else have it working?
Posted by stewartevans on Oct 01, 2012
  

Amazing plugin

This plugin is simple, fast, and productive!
Congratulations!
Posted by R063R on May 15, 2012
  

Wonderful Plugin

This is an absolutely wonderful plugin. It has saved me much time and trouble. Thank you so very much for putting this together and updating it.
Posted by stosh on Dec 08, 2011
  

Braces matching not working

Hi rwankar, could you please give me more detailed information about the problem, e.g. a sample code snippet that demonstrates the issue ?
Posted by wjaeger on Sep 23, 2011
  

Braces matching not working

I'm using the latest 2.2.3 and nb 7.0 on Linux. Braces matching does not work. What could be wrong?
Posted by rwankar on Sep 23, 2011
  

Velocity Editor Support with HTML Syntax Features

Hello - I was wondering if there is a way to have HTML editor support for velocity files in addition to the velocity editor support? If not, could that be a feature for the next release or an option to add additional support in the case that velocity is used to render other types of files, like JSON, XML, etc.?

Thanks.
Posted by allspeeds on Jul 18, 2011
  

Can it be with other extenstion like htm?

I'm using Apache Click which uses Velocity but default extension is htm. If it can work with htm extension, it would be great value to me and other Click users.
Posted by donghwi on Jul 15, 2011
  

7.0 Support

Thanks for the update!
Posted by erubio on May 12, 2011
  

Velocity file determination in NB 7.0

Hi, I have a project with 2 .vm files.
I installed your plugin, but the files were not recognised.
In order to have them recognised I had to rename them as .xml, then they were recognised as XML files. Then right-clic -> properties on the file and change the extension property to "vm".
Posted by lolo_101 on Apr 28, 2011
  

NB 7.0 Support

I just upgraded it for Netbeans 7.0 support
Posted by wjaeger on Apr 26, 2011
  

NB 7.0 Support

Are there any plans for upgrading this great plugin for Netbeans 7.0?
Posted by thomasfr on Apr 23, 2011
  

7.0 support?

I'm also interested in a version for NB 7.0, I found one which is shipped with the IDE but it seems to be outdated (version 1.3.7 I think). Could you please send me the nbm by email at nebelmann at netbeans.org please?
Posted by nebelmann on Mar 23, 2011
  

7.0 support?

wjaeger, can you please send me a 7.0 nbm, it would be great! you can find my contact details here http://rustam.li/ Thank you, it seems to be very helpful plugin.
Posted by turan on Feb 17, 2011
  

7.0 support?

I'm going to update it to work with version 7.0 as soon as version 7.0 will be released.

Meanwhile I can send you a version 7.0 compatible NBM if you provide me an FTP, HTTP or e-mail address.
Posted by wjaeger on Jan 16, 2011
  

7.0 support?

Could it be updated to work with 7.0?
Thanks in advance!
Posted by erubio on Jan 12, 2011
  

Thanks for the offer - 2.2.1

That would be great, thanks! If you could, send it to mdeggers at gmail dot com. Thanks for the work in putting together a velocity editor.
Posted by mdeggersbeans on Aug 21, 2010
  

Chance of downloading 2.2.1

unfortunately not. But I can offer you to send you the 2.2.1 nbm (100KB) if you don't mind to provide an FTP, HTTP or e-mail addrress. Regards Werner
Posted by wjaeger on Aug 21, 2010
  

Chance of downloading 2.2.1

Any chance of getting a copy of 2.2.1 (if it works on NetBeans 6.8)? I'm working through some Jetspeed 2 tutorials that have a lot of Velocity macro pages. Unfortunately the Portal Pack plugins do not yet work on NetBeans 6.9.1.


Thanks in advance

Posted by mdeggersbeans on Aug 21, 2010
  

About source code...

Could you sent me the source code too? I wish to study it as well help about improvements in the future.
My email is michel.graciano at gmail dot com.

Thanks
Posted by hmichel on Jul 08, 2010
  

Thanks for the update.

I have been using this plug-in previously on netbeans and have migrated up to 6.9. Great plug-in good work guys!
Posted by mcolegrove2 on Jul 07, 2010
  

About source code...

Hi,
I would like to help to migrate this plugin to NetBeans 6.9. Could you make the source code available for me? My email is michel.graciano at gmail dot com

Thanks a lot and congratulations about your work.
Posted by hmichel on May 14, 2010
  

Source

Thanks for your response, my mailaddress is: arjen atsign killerapps dot info
Posted by arjenjb on Mar 09, 2010
  

Source

Unfortunately I've not a public accessible repository. However, if you tell me your E-Mail address I'll happily send you the source code in a .zip file (3.5 MB).
Posted by wjaeger on Mar 09, 2010
  

Source

I wondered if the source code of this plugin is available? I'd like to use it as a reference for my own syntax highlight plugin that i'm working on?

Be glad to hear from you
Posted by arjenjb on Mar 08, 2010
  

Incompatible to 6.7.1

Hi,

is it possible to make it run under 6.7.x?

That would be great....
Posted by ch_thiel on Sep 01, 2009
  

6.7

any chances of getting it going on 6.7.1?

works on 6.1 buit it's a bit prechistoric
Posted by primek on Aug 05, 2009
  

In trying to use with 6.7, this warning message came up

Warning - could not install some modules: Velocity Editor Support - The module named org.netbeans.modules.editor.deprecated.pre61completion/0 was needed and not found.
Posted by jeichels on Jul 11, 2009
  

Many thanks!

Finally I have one less reason to use my Eclipse IDE.

I hope the code completion feature will come soon. The code fold feature is very helpful.

Thanks.
Posted by tmc_lam_au on Aug 13, 2008
  

Velocity file determination

I installed the plugin, but it cannot determine that the file is a velocity file. How can I tell NetBeans or the plugin that this is a velocity file?

I use NetBeans 6.5M1.
Posted by minoleg on Aug 06, 2008
  

Source Code

...also is there any way we can obtain the source code for this plugin?

I looked inside the jars and apart from the NBS schema I see some classes but only in compiled form

Regards,
Christos
Posted by cvasilak on Jun 22, 2008
  

Editor Problem

Hi there,

I am using Netbeans 6.1 under Ubuntu Hardy.

I have installed the plugin successfully but I having some problems. While editing a velocity files it pops up error messages although the code is correct. Even for simple statements I get errors. Some times if I close the file and reopen it the errors disappear. But it doesn't work all the time.

Is this a known issue , do I need to install sth extra, any workaround?

Regards,
Christos
Posted by cvasilak on Jun 22, 2008
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo