简体   繁体   English

如何在Eclipse Indigo中启用语法突出显示?

[英]How to enable syntax highlighting in Eclipse Indigo?

How to enable syntax highlighting in Eclipe Indigo? 如何在Eclipe Indigo中启用语法突出显示? I write in Java. 我用Java编写。 I installed this plugins for more comfortable usage on small screens, but even if I turn it off - all the words in editor are black:( 我安装了此插件是为了在小屏幕上更舒适地使用,但是即使我将其关闭-编辑器中的所有单词均为黑色:(

You may set your coloring preferences by 您可以通过以下方式设置颜色首选项

Window->Preferences-> Java->Editor->Syntax Coloring 窗口->首选项-> Java->编辑器->语法着色

Make sure you are using the Java perspective (or Java EE) as well. 确保同时使用Java透视图(或Java EE)。 You should be able to see the name of the active perspective and/or editor in the title bar. 您应该能够在标题栏中看到活动透视图和/或编辑器的名称。

To be 100% sure, you can always right click on the file in question and Open With->Java Editor to ensure that it is the Java editor that is open for your file. 为确保100%的正确性,您始终可以右键单击有问题的文件,然后右键单击“打开方式”->“ Java编辑器”以确保为您的文件打开的是Java编辑器。

Eclipse remembers which editor you last used to open a file and keeps opening it with that editor, even if you've installed a better one later. Eclipse会记住您上次使用哪个编辑器来打开文件,并且即使以后安装了一个更好的文件,它也会继续使用该编辑器打开它。 Right-click on the file and force it to open with the Java Editor using the "Open With..." menu. 右键单击该文件,然后使用“打开方式...”菜单强制使用Java编辑器将其打开。 If you're not getting any coloring at all, you might just be using the wrong editor. 如果根本没有着色,则可能是使用了错误的编辑器。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM