Perl - plugin detail

A simple perl plugin (syntax highlighting for NetBeans IDE in .pl, .perl, .pm and .cgi files)

NetBeans Plugin - Perl
Plugin owner: soldatov
Website: http://netbeans.mojgorod.ru/perl.html
Added: 2008-06-19
License: CDDL
Category: Programming Languages
Downloaded: 22,447 times
Rating:
 4.17, by 13 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.04 MB   Last Update: 2016-05-11

What's new in this version

highlight files without extensions if first line contains #!/usr/bin/perl string

Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.04 MB   Last Update: 2014-05-09

What's new in this version

highlight files without extensions if first line contains #!/usr/bin/perl string

Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.03 MB   Last Update: 2012-10-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

1.0.1 - I fixed some of bugs in syntax highlighting and 'Run' action.
1.0.2 - Plug-in will work in NetBeans 6.5
1.0.3 - Plug-in will work in NetBeans 6.7
1.0.4 - Plug-in will work in NetBeans 6.9. But 6.0, 6.1 are removed
1.0.5 - font color for "variables" can be changed (NetBeans 6.9, 7.0, 7.1 and 7.2 are supported)


Verifications for NetBeans versions

7.2 verification PASSED See verification details
Download plugin   Download size: 0.01 MB   Last Update: 2010-11-14

What's new in this version

1.0.1 - I fixed some of bugs in syntax highlighting and 'Run' action.
1.0.2 - Plug-in will work in NetBeans 6.5
1.0.3 - Plug-in will work in NetBeans 6.7
1.0.4 - Plug-in will work in NetBeans 6.9. But 6.0, 6.1 are removed


Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.01 MB   Last Update: 2010-11-14

What's new in this version

1.0.1 - I fixed some of bugs in syntax highlighting and 'Run' action.
1.0.2 - Plug-in will work in NetBeans 6.5
1.0.3 - Plug-in will work in NetBeans 6.7
1.0.4 - Plug-in will work in NetBeans 6.9. But 6.0, 6.1 are removed


Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.01 MB   Last Update: 2010-11-14

What's new in this version

1.0.1 - I fixed some of bugs in syntax highlighting and 'Run' action.
1.0.2 - Plug-in will work in NetBeans 6.5
1.0.3 - Plug-in will work in NetBeans 6.7
1.0.4 - Plug-in will work in NetBeans 6.9. But 6.0, 6.1 are removed


Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.01 MB   Last Update: 2010-11-14

What's new in this version

1.0.1 - I fixed some of bugs in syntax highlighting and 'Run' action.
1.0.2 - Plug-in will work in NetBeans 6.5
1.0.3 - Plug-in will work in NetBeans 6.7
1.0.4 - Plug-in will work in NetBeans 6.9. But 6.0, 6.1 are removed


Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

A syntax highlighting in files with .pl, .perl, .cgi and .pm extensions. Other supported features are "code folding", "comment/uncomment line" and "Navigator tab".


Source code:
Known problem:
  • First perl file has not a syntax highlighting. Workaround: reopen file
Tips:
  • Code completion (Ctrl+\ or Ctrl+space) suggests Perl5 keywords only
  • Ctrl+/ - comment/uncomment current line
  • If you will add empty nbproject/perlproject.properties file, then this folder can be opened as project

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

User Comments

  

Not recognize files without an extension

My resolver expects "#!..../bin/perl" line. Why you use spaces? I don't think you uses valid header.
Posted by soldatov on Aug 27, 2015
  

Not recognize files without an extension

I have files with no extension and any perl plugin does not recognize those files as perl even when the first line is
#! / Usr / bin / perl

NetBeans Version 8.0.2
Posted by jalcantara-inova on Aug 27, 2015
  

Please support NB 8 :)

I reported IZ242164 ( https://netbeans.org/bugzilla/show_bug.cgi?id=242164 ). Anyway I use my plug-in in NetBeans 8.0
Posted by soldatov on May 12, 2014
  

Please support NB 8 :)

;)
Posted by tomzi on May 12, 2014
  

Catalyst, Dancer

What would be great is if it would create Dancer, Catalyst and other framework projects out of the box. I would be willing to put some time into help developing the plugin if anyone cares to make the source code available.
Posted by dannymk on Sep 18, 2013
  

Thanks

As workaround I use "C/C++ Application" project type in same cases.
Posted by soldatov on Feb 10, 2013
  

Thanks

It would be more usefull if project had some properties. Like choosing codepage at least.
Posted by self on Jan 29, 2013
  

Great - finally stable and fully functional!

Kudos , Mr Soldatov - really helpful plugin! Keep the good work!
Posted by kvguser on Oct 11, 2012
  

Fix needed: you have hardcoded the variable colour

Fixed in 1.0.5 build
Posted by soldatov on Oct 03, 2012
  

Fix needed: you have hardcoded the variable colour

to kvguser

You can remove this text from language.nbs:
COLOR:variable: {
foreground_color: "#b317e5";
}

Second case is default colour
Posted by soldatov on Oct 02, 2012
  

Fix needed: you have hardcoded the variable colour

As @maitrebart posted below, this is a bug in your plugin. Please fix it.

I have found that you have hardcoded this Perl "variable" color as "b317e5" in file org-languages-perl.jar (two occurrences).

To all that don't want to wait for the bug fix: use hex editor and replace this value (two occurrences) with your own value. Restart Netbeans to take effect.
Posted by kvguser on Oct 01, 2012
  

Works on NetBeans 7.2 as well!

So far seems a great plugin!

Unless some stability or other integration problem shows up, it works on 7.2 - syntax highlighting,

Great job, Mr Soldatov!

(my system is MacBook Pro Retina 15", OS X Mountain Lion 10.8.2 )
Posted by kvguser on Sep 29, 2012
  

NetBeans 6.8

Nice and useful plugin.

However, the font color for "variables" does not change when modified in the Fonts & Colors options (Perl language, of course!).

I tried restarting the IDE but no change too.
Posted by maitrebart on Sep 01, 2012
  

Perl plugin 1.0.4

New in 1.0.4:
1) $#$array_ref are fixed
2) my syntax highlighting works in *.pl files in NetBeans 6.9
3) in folder with your script files you can create nbproject\perlproject.properties empty file and your can open this folder in NetBeans
4) "Open File..." menu action and drag&drop from explorer to NetBeans 6.9 are fixed
Posted by soldatov on Nov 13, 2010
  

Thumbs up

On my site I updated http://netbeans.mojgorod.ru/org-languages-perl-dev.nbm file (experimental build). "Perl Project" feature are added.
Posted by soldatov on Nov 11, 2010
  

Thumbs up

Perl is a great language that deserves definitely a lot more attention... so IDE support should be greatly enhanced.

Besides vi (which is great already) and padre (which is ok, but still a little basic, compared to fully enhanced modern IDEs) there is only EPIC in Eclipse. And there are Eclipse-lovers and NetBeans-haters.... and vice versa.

I definitely prefer NetBeans and I would love to see full perl support in NetBeans.

Currently I develop Perl/Mason web stuff. It would be great to have some mixed syntax support - like syntax highlighting in Mason-modules (mixed up w/ HTML!).

Sad to know GLF will be discontinued. I hope there will be some non-GLF-replacement of this (at least) syntax highlighting module.
Posted by chrishhde on Nov 11, 2010
  

Highlighting bug

Wrong comment parsing
The string like this ' ... $#$array_ref ... ' highlighting as a comment starting from simbol '#'
But this is just an index of last elemrnt of array

As far as the code is indide "for( ... ) {" loop whole code below highlighs as syntax error because of unclosed parentheses
Posted by zurom on Nov 10, 2010
  

NetBeans 6.9

ooops! I downloaded NetBeans 6.9 and my plug-in is working! Generic Languages Framework is marked as deprecated, but it is not removed.
Temporary small workaround is needed:
- Push Tools|Options menu item
- Click on Miscellaneous icon
- Select Files tab
- Select "pl" extension
- Select "text/x-perl" associated file type
- Push OK button
I think this problem can be fixed for few days.
Posted by soldatov on Jun 17, 2010
  

NetBeans 6.9

In NetBeans 6.9 Generic Languages Framework is removed, therefore my plugin will not work. Sorry. I don't think I will rewrite my plugin from zero. :(
Posted by soldatov on May 29, 2010
  

Please Perl for Netbeans 6.8

What a great plug in! I hope you release a new version for Net beans 6.8, perhaps with code completion please.
What would also be nice is interrogation with Active Site Perl interpreter.
Posted by bklass on Dec 17, 2009
  

Changes in next version

In next I will add "Perl Project Type" with base functionality.
Posted by soldatov on Oct 31, 2009
  

syntax bugs

There was one cause that was left out of the language.nbs i have added it. You just need to add the follow.

TOKEN:string: (
"`" ([^ "\\" "`"] |
("\\" (.))
)*
"`"
)

save and re-install :D
Posted by crash_her on Aug 05, 2009
  

I hope you can extend its functionality.

Thank you very much for this plugin.

I like to use NetBeans for projects in php, javascript and html, but I expect the full integration of Perl ...
Posted by dupy on May 26, 2009
  

Future of this pluginn

I haven't big plans (I am too busy in order to learn NetBeans API, but it is necessary in order to improve plugin). Before NetBeans 6.7 Release Candidate I will look changes in Generic Languages Framework (http://languages.netbeans.org/). And I will fix new problems in my plugin if they will appear in NetBeans 6.7.
Posted by soldatov on Mar 16, 2009
  

Future of this pluginn

Do you plan any enhancements for this plugin, which was really helpful during a recent Perl project?
Posted by giorgio42 on Mar 14, 2009
  

Source?

http://netbeans.mojgorod.ru/perl.tar.gz
Posted by soldatov on Feb 17, 2009
  

Source?

Can you include the source code or post it on your site? I would like to expand the functionality of this plugin. Thanks!
Posted by mykbaker on Feb 17, 2009
  

Where can I get the NBS file?

You can download nbm file from this page. nbm file is zip archive. You can find netbeans/modules/org-languages-perl.jar file in it.This file (it is archive also) contains org/languages/perl/language.nbs file.
Posted by soldatov on Feb 17, 2009
  

Source code

Where can I get the NBS file?
Posted by zaid_sheikh on Feb 17, 2009
  

It's a great step forward

I like to use Netbeans to open java project, but I have to eclipse to open Perl project with epic . Hope we sometime soon can use netbeans to open perl project . that's would be perfect to Perl users .


thanks a lot
Posted by unixiscool on Nov 15, 2008
  

Exactly what I need

Thank you so much!!
Posted by giorgio42 on Oct 23, 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