A quick way to set custom syntax highlighting in Eclipse

I know that I am not the first to need it. I am working on a codebase, and I would like to apply highlighting to it in Eclipse. In Notepad ++, I can set the language for the file I'm looking at. Is there a way to do this for Eclipse?

The code I'm working on will use the same syntax style as C ++.

+7
eclipse springsource syntax-highlighting
source share
1 answer

It’s best to go to Settings β†’ General β†’ Editors β†’ File Associations. Add the file extension of the thing you are trying to open, and add the C ++ editor as the default editor associated with it.

If the file extension does not exist, everything will be a little more complicated. Instead of double-clicking, to open the file, right-click β†’ Open with ... β†’ another β†’ C ++ Editor. This will remember your choice only for this file.

+12
source share

All Articles