Eclipse: syntax highlighting disappeared for one of my files

蓝咒 提交于 2019-11-29 02:32:44

问题


I was trying to close unused files in Eclipse and accidentally made something wrong. Now I can't see syntax highlighting for one of my files. Here are two screenshots - on the first you can see file, where highlighting is broken, and on the second everything is fine:

Highlighting doesn't work for this file only. Extension of this file is correct. I tried to look through all menu buttons carefully, but this attempt failed, I suppose Eclipse is hard enough for newbie. Of course, I tried to find information in the Web, but couldn't get anything relative.


回答1:


I guess you accidentally opened the file with the 'Text Editor'. Refer screenshot below.




回答2:


In C/C++ is also a scalability mode which disable syntax highlighting if the file has more than 5000 lines.



来源:https://stackoverflow.com/questions/13237163/eclipse-syntax-highlighting-disappeared-for-one-of-my-files

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