I have to work on a file that for a variety of reasons cannot be renamed to have a .pl extension. So far I have worked by creating a private version, changing its name to have a .pl extension and then copying it back again after changes. It is now becoming cumbersome and creating bugs. Is there any way to make perl epic/eclipse syntax color a .pl file
To associate a file extension with Epic Perl in Eclipse go to: Window > Preferences > General > Editors > File Associations.
If you see the extension that you're looking for listed under "File types:" skip to step 2.
Step 1: To the right of the "File types:" box click Add. Now type * followed by the extension name. For example, to add .txt I type *.txt then click OK.
Step 2: Click on the extension in the "File types:" box. Then, to the right of the "Associated editors:" box click Add. Now select Epic Perl Editor and click OK. Lastly, select Epic Perl Editor in the "Associated editors:" box and click Default.
Now your files of that type should be treated as if they were .pl files by the Epic Perl syntax.
I have some Perl files which even haven't got any extension. What I did is to use "ln" setup a symbol link with .pl to point the real file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With