mikestaub
mikestaub

Reputation: 2173

Is there a Perl extension for Visual Studio?

Does anyone know if there is an extension or plugin for Visual Studio (any version) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes.

Upvotes: 33

Views: 37349

Answers (6)

brian d foy
brian d foy

Reputation: 132858

Visual Studio Update 1 RTM now (2015) has Perl support, along with Go, Java, R, Ruby, and Swift.

Upvotes: 13

Roland Pihlakas
Roland Pihlakas

Reputation: 4573

A workaround for Visual Studio desktop version is to use C++ syntax highlighting.

  • Go to Options -> Text Editor -> File Extension
  • Enter extension "pl" (no dot)
  • Assign it to "Microsoft Visual C++"
  • Click "Add"

If necessary, repeat the same steps for "cgi" extension.

Upvotes: 0

Andreas ZUERCHER
Andreas ZUERCHER

Reputation: 902

A work-in-progress Visual Studio extension for Perl6 (not the Perl5 asked by the OP) is incrementally more full-featured. It is released under the MIT License and its repository is on GitHub. As a prerequisite, Perl6 (e.g., Rakudo) needs to already be installed.

Upvotes: 2

Kiran Kumar Kotari
Kiran Kumar Kotari

Reputation: 1160

For Perl syntax highlight ext install perl6

Install this extension To Run Perl and Other languages

Upvotes: 0

Christopher Bottoms
Christopher Bottoms

Reputation: 11168

Old Answer (still applies unless you are using Visual Studio Update 1 RTM (2015) or later)

In short. No, there doesn't seem to be a good plugin for it.

If you use Perl rarely, I would recommend sticking with Visual Studio for Microsoft languages and Padre for Perl.

However, if you use Perl as much or more than Microsoft languages, you might want to check out Emacs, which has support for C#, VB.NET, and Perl. Emacs is designed to be a "one-stop-shop" for all you do all day long, including browsing the web. You can come into work, start using Emacs and never have to leave it until it is time to go home.

disclaimer: The answer above is geared toward the Original Poster. I'm a big fan of vim. Personally, if I were thrust into a situation where I had to work with C# and Perl on the same project, I would get ViEMU for Visual Studio and then use two editors: Visual Studio for C# and vim for Perl.


If this is something you are willing to spend some time on, check out defining your own syntax highlighting for Visual Studio.

Upvotes: 14

recursive9
recursive9

Reputation: 340

Komodo Edit is quite nice, and free. code folding and other good stuff.

Upvotes: 6

Related Questions