Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML custom conde formatter
XML custom conde formatter [message #514708] Tue, 16 February 2010 12:11 Go to next message
Simone Pezzano is currently offline Simone PezzanoFriend
Messages: 1
Registered: November 2009
Junior Member
Hello everyone.
The basic code formatter in XML/XSL editing does not behave in a hierarchical way.
If I type : <element> and hit return, the cursor ends up just under the "<" instead of moving a tab forward, to show the hierarchical relationship with the parent node (like Java editor would do, in presence of a curly bracket).
I know this is a common behavior for all Eclipse editors, and this is pretty smart and correct in most cases, but I was wondering if there's a way to set a custom formatter to the XML editor, to achieve this result.
I'm pretty familiar with WTP development but I couldn't find my way in there, so any hint that might require editing the editor core itself are welcome as well (for exploration purposes).

Of course, any information about community purposes to include this feature are very welcome.

Thank you in advance for you great help

Simone
Re: XML custom conde formatter [message #519753 is a reply to message #514708] Tue, 09 March 2010 20:46 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

Simone Pezzano wrote:
> Hello everyone.
> The basic code formatter in XML/XSL editing does not behave in a
> hierarchical way.
> If I type : <element> and hit return, the cursor ends up just under the
> "<" instead of moving a tab forward, to show the hierarchical
> relationship with the parent node (like Java editor would do, in
> presence of a curly bracket).

Actually, this isn't the formatter at all, it's the automatic
indentation strategy being used, and that may be the cause for the
discrepancy. Some enhancements have been made for the Helios
release, so you might want to try out a recent milestone to see if
it's working more the way you want. Otherwise a feature request in
Bugzilla's the best way to get things kick-started. If nothing
else, it gives us a place to help guide your contributions and to
attach patches to.

--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Re: Eclipse APIs for importing war in plugin
Next Topic:syntax highligth for php AND js
Goto Forum:
  


Current Time: Tue Mar 19 07:46:30 GMT 2024

Powered by FUDForum. Page generated in 0.02097 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top