views:

34569

answers:

16

I was amazed to find out that apparently Eclipse doesn't come with a decent HTML editor by default (it opened my .html file in some kind of browser view and apparently tried to render it). And the basic text editor is not good enough (I need at least some syntax highlighting and automatic indenting).

Any suggestions?

A: 

Aptana has an Eclipse plugin for Rails, but it might come with HTML and CSS highlighting and formatting tools. I'm not really sure on that, though,

Thomas Owens
+5  A: 

Aptana has a very nice HTML editor, and can be installed as a plugin in your existing Eclipse configuration, although it might be a bit overkill to install it just for the HTML editor.

Kristian J.
What does Aptana company earn their money on?
stolsvik
They sell a licensed version of Aptana with some extra features, and have a cloud solution for web hosting.
Kristian J.
+37  A: 

If you installed the basic Eclipse package you might not have HTML editors installed. If you installed Eclipse IDE for Java EE Developers it comes with the Web Tools Platform preinstalled. It has relatively good HTML editor (tag and attribute autocompletion with ctrl+space etc.) and even a "Web Page Editor" which lets you see the elements you are editing in a preview window. I guess you could try installing the Web Tools Platform (plugin) to your existing install.

Leo Lännenmäki
Yeah and it's only 'Web Page Editor' that you need to install in order to get html editor.
alex
Good point because the rest of the Web Tools Platform is definitely overkill if you just want to edit HTML.
Cory Engebretson
does the web tools platform have a WYSWYG tool?
Nassign
Better instructions via Thorbjørn
knowncitizen
+7  A: 

I had the same issue. Apparently you need to install the Web Page Editor, which was optional (in the version of Eclipse that I installed).

Go to "Help" > "Software Updates..." > "Available Software". Expand the "Web Tools (WPT) Update Site" > "Web Tools Platform (WTP) 3.0.5". Here you'll find the Web Page Editor; select it and hit install.

PropellerHead
+2  A: 

Thanks! I came across this after trying, unsuccesfully, to install the " Project Amateras" tools. They say "just drop the jar in the dropins folder" but my two Eclipse installs fail to find it.

ראובן
I dropped amateras' jar in the plugins folder and it worked like a charm. It's also the best choice, BTW.
Hugo
A: 

This does not integrate into Eclipse but Notepad++ is a very nice and lightweight html editor. Additionally this application provides highlighting for a large number of languages and some it even acts like an IDE for syntax (press cntrl+space).

I have Aptana studio also which works very well and validates your code as you enter it. Notepad++ does not highlight syntax errors.

Dan
I like Notepad++ too, but that's clearly not what was asked. Sorry.
Sean McMillan
+38  A: 

Note for those using Eclipse 3.5 Galileo. To install the Eclipse Web Page editor

Go to "Help" > "Install New Software" Choose to work with the site "http://download.eclipse.org/releases/galileo", Expand "Web, XML and Java EE development", Check "Web Page Editor" and click Next to continue with the install

Andrew
those instructions worked although they weren't "exactly" correct, they gave me enough info to do it.
djangofan
A: 

Decided to check out Aptana and have to confess that -- after just two hours working on a new site with it -- I think I'm going to leave my long-term addiction to BBEdit in the dust.

phillipadsmith
+1  A: 

One note about Galilio "Web Page Editor": specify Open with "Html editor" instead of "Web page editor" if you faced exception.

efan
A: 

I tried installing using the Help|Install New Software within eclipse. I get the following error

An error occurred while installing the items session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]org.eclipse.ant.ui 3.4.1.v20090901_r351, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction). The artifact file for osgi.bundle,org.eclipse.ant.ui,3.4.1.v20090901_r351 was not found.

Any idea what could be wrong?

Best regards

Sridhar Pandurangiah

A: 

I use Amateras. It is relatively simple, and it works well.

stepancheg
A: 

yep I'm using amateras its good u can download it from here, here is one also http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor

people are using it since 2004 so it sounds ! one should try it works for JS too !

Tumbleweed
A: 

Thanks for the tip... The eclipse web tools platform does the trick for me.

I've used UltraEdit for coding basic HTML in the past, I really liked it. Does anyone know if they have an eclipse plugin?

A: 

I'll chime in with the other fellow who suggested NotePad++. Is there a forthcoming Eclipse plugin from NotePad++ in the works?

Kirby L. Wallace
A: 

gEdit (Linux, Windows, Mac) works pretty well and supports C, C++, Java, HTML, XML, Python, Perl and many others.

Marcel
gEdit may be called by Eclipse when opening an HTML file, but doesn't really integrate into the platform.
Giulio Piancastelli