How to color highlight .htaccess files in Eclipse

為{幸葍}努か 提交于 2019-12-21 04:30:05

问题


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?


回答1:


One thing that would work for sure is write your own plugin for .htaccess files. But if you've never done that before it will take a bit of time to get into. There are plenty of tutorials available online, though. See here for an example.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/364152/how-to-color-highlight-htaccess-files-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!