How To Support New Language On Eclipse?

How can I make Eclipse open files in itself rather than using the system editor, with language-specific syntax highlighting?

  • I'm using Eclipse 3.5.2 on Ubuntu for some Java projects- however, when I click a file in left navigator pane it opens in systen text editor(gedit) instead of Eclipse built in editor. It opens in Eclipse if I drag-and-drop, but then Java syntax is not highlighted.

  • Answer:

    This is controlled in Preferences→General→Editors→File Associations. Nominate the built-in editor plugin for Java for .java files. Eclipse remembers the editor last used for a file, so you may need to use the right-click menu on a file to choose the desired editor, if you've already opened it with the wrong editor.

Toby Thain at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.