Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Eclipse to open .html in text-editor by default?

Eclipse Juno keeps opening my HTML files in a embedded web-browser, rather than in an embedded syntax-highlighting editor.

I have installed:

  • Web Page Editor
  • Eclipse Web Developer Tools
  • PyDev for Eclipse

Specifically see the screenshot of my install applications.

I need it to work with Django templates + any other Python templates with HTML + normal HTML+JS files.

How do I find this editor, and select it as default?

like image 797
user1438003 Avatar asked Aug 06 '12 15:08

user1438003


People also ask

How do I change the default text editor in Eclipse?

Tip. You can set which Eclipse editor or external program to use to open a specific type of file based on its file extension. Just select Window→ Preferences→ Workbench→ File Associations, select the file type, and associate an editor or program with it (if nothing else, you can use Eclipse's default text editor).

How do I change the default open in Eclipse?

But you can right-click and choose Open With > Default Editor to change it back to use the default editor when you open the file from then on.

Does Eclipse have HTML editor?

Eclipse Web Developer ToolsIncludes the HTML, CSS, and JSON Editors, and JavaScript Development Tools from the Eclipse Web Tools Platform project, aimed at supporting client-side web development and node. js applications.


1 Answers

Select Window -> Preferences from the main Eclipse menu.

Select General -> Editors -> File Associations from the Preferences menu.

enter image description here

For .htm and .html, left click on the extension in the upper view. Left click on the Add button to the right of the lower view to add one or more HTML editors. Left click on your favorite HTML editor and left click on the Default button to make it the default editor.

If the extension you want is missing, left click on the Add button to the right of the upper view to add the extension.

like image 179
Gilbert Le Blanc Avatar answered Oct 02 '22 10:10

Gilbert Le Blanc