Edit Perl Files in Dreamweaver (with color syntax highlighting)

Get the Perl / CGI Dreamweaver Extension

Edit PERL and CGI files in Dreamweaver with color colding and syntax highlighting. Didn’t think it was possible? Well, it is. The first step is to get the free Dreamweaver Extension: Perl Support.

Make it work with CGI

to get it to work with CGI files, a few minor tweaks are needed

Install the extension mentioned above. Then, make the following changes in these two files:

File 1: PerlDocumentType.xml
C:\Documents and Settings\user\Application Data\Adobe\Dreamweaver 9\Configuration\DocumentTypes\PerlDocumentType.xml
change
PL,PM:Perl files
to
CGI,PL,PM:Perl files

File 2: Extensions.txt
C:\Documents and Settings\user\Application Data\Adobe\Dreamweaver 9\Configuration\Extensions.txt

change:
winfileextension="pl,pm" macfileextension="pl,pm"
to:
winfileextension="pl,pm,cgi" macfileextension="pl,pm,cgi"

Problem Solved! Screenshot:

dw_perl

Also see these sites to learn more about this issue:

Related Posts:

  • No Related Posts
This entry was posted in Software, Web Development and tagged . Bookmark the permalink.

5 Responses to Edit Perl Files in Dreamweaver (with color syntax highlighting)

  1. Drew says:

    In OS X, the files are in the following locations:

    /Users//Library/Application Support/Adobe/Dreamweaver CS6/en_US/Configuration/DocumentTypes/PerlDocumentType.xml

    /Users//Library/Application Support/Adobe/Dreamweaver CS6/en_US/Configuration/Extensions.txt

  2. Phil Hilton says:

    Lack of qq support makes this extnesion pretty useless for me, unfortunately.

  3. Marc says:

    thanks, Max!

  4. Max says:

    I think you have the changes to “File 1” listed under “File 2” and vice versa.

    You have to make this change:

    winfileextension="pl,pm" macfileextension="pl,pm" to: winfileextension="pl,pm,cgi" macfileextension="pl,pm,cgi"

    in PerlDocumentType.xml and vice versa.

  5. Guest says:

    Great Post Thanks, I been looking for this extensions.

Leave a Reply

Your email address will not be published. Required fields are marked *