Is there a Perl extension for Visual Studio?

Viewed 34330

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. Thanks.

6 Answers

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.

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.

Related