Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to color highlight .htaccess files in Eclipse

I spend some time editing configurations in .htaccess files across several projects in Eclipse. How would I go about telling Eclipse to auto color this file in a similar fashion as shell scripts or HTML?

like image 382
bryan kennedy Avatar asked Dec 12 '08 21:12

bryan kennedy


2 Answers

I found using the "Properties File Editor" seems to give a decent color output. It's actually for Java files, so it comes with a stock Eclipse.

In Preferences, "General" -> "Content Types" -> "Text" -> "Java Properties File" click "Add..." button, enter ".htaccess", click "OK".

like image 133
kscheirer Avatar answered Sep 28 '22 06:09

kscheirer


You could use the ColorEditor from Gstaff, in order to define your own syntax coloring.

like image 26
VonC Avatar answered Sep 28 '22 06:09

VonC