Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make (EPIC perl) plugin on eclipse do syntax coloring for a file that does not have .pl extension

Tags:

eclipse

epic

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

like image 823
doon Avatar asked Dec 19 '11 17:12

doon


2 Answers

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.

like image 198
Joe Avatar answered Nov 02 '22 23:11

Joe


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.

like image 41
Yang Avatar answered Nov 03 '22 00:11

Yang