Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Simple editing question about XML editor.
Simple editing question about XML editor. [message #167184] Fri, 21 April 2006 15:39 Go to next message
Eclipse UserFriend
Originally posted by: pchapin.sover.net

I installed Web Tools v1.0.1 and have started to experiment with it. My
immediate need is to edit some DocBook documents so I'm just looking at
the XML editing facilities at the moment.

My question is: how does one control/adjust word wrapping? This seems
like a silly question but I can't seem to find the answer. Some of the
lines in my current document are quite long (entire paragraphs on one
line). The XML editor (source view) requires me to scroll horizontally
to see the entire line and thus I am only able to see the first part of
each paragraph. Clearly this is awkward. What I would like is:

1. Have the editor wrap long lines on the display while maintaining them
as a single line in the document.

OR

2. Have an easy way to reformat the long lines by breaking them into
several shorter lines.

The first option is the ideal because, in general, the line breaks might
have semantic significance inside an XML element. However, that's not a
worry in this case so option #2 would also be good.

I also notice that the editor appears to require me to break lines
manually when I enter new text. The problem with this is when I edit the
text the line lengths become highly unequal and that's really ugly and
hard to read. I'm looking for an easy way to reformat such lines to
approximately equal length.

I have this idea that there is a setting somewhere for this, but I can't
find it. I also wonder if what's happening here is an incompatibility
between the design philosophy of the editor and my needs. Although I'm
editing an XML document, my document is not structured *data*, but
rather "ordinary" prose documentation. In my situation I need support
for a certain number of conventional word processing features (such as
word wrapping) as well as, of course, intelligent handling of the XML
markup. Perhaps the Web Tools XML editor is not the right tool for me.

Peter
Re: Simple editing question about XML editor. [message #167317 is a reply to message #167184] Mon, 24 April 2006 19:23 Go to previous message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
Peter, right click in the xml editor and select format -> document, this
will format for number 2. (or use ctrl + shift + f)

To adjust the line length, look at window, preferences, web and xml, xml
files, xml source and set the line width.

Hope this helps,

Brian Jakubik

"Peter C. Chapin" <pchapin@sover.net> wrote in message
news:Xns97AC76A82FC9Epchapinsovernet@206.191.52.34...
>
> I installed Web Tools v1.0.1 and have started to experiment with it. My
> immediate need is to edit some DocBook documents so I'm just looking at
> the XML editing facilities at the moment.
>
> My question is: how does one control/adjust word wrapping? This seems
> like a silly question but I can't seem to find the answer. Some of the
> lines in my current document are quite long (entire paragraphs on one
> line). The XML editor (source view) requires me to scroll horizontally
> to see the entire line and thus I am only able to see the first part of
> each paragraph. Clearly this is awkward. What I would like is:
>
> 1. Have the editor wrap long lines on the display while maintaining them
> as a single line in the document.
>
> OR
>
> 2. Have an easy way to reformat the long lines by breaking them into
> several shorter lines.
>
> The first option is the ideal because, in general, the line breaks might
> have semantic significance inside an XML element. However, that's not a
> worry in this case so option #2 would also be good.
>
> I also notice that the editor appears to require me to break lines
> manually when I enter new text. The problem with this is when I edit the
> text the line lengths become highly unequal and that's really ugly and
> hard to read. I'm looking for an easy way to reformat such lines to
> approximately equal length.
>
> I have this idea that there is a setting somewhere for this, but I can't
> find it. I also wonder if what's happening here is an incompatibility
> between the design philosophy of the editor and my needs. Although I'm
> editing an XML document, my document is not structured *data*, but
> rather "ordinary" prose documentation. In my situation I need support
> for a certain number of conventional word processing features (such as
> word wrapping) as well as, of course, intelligent handling of the XML
> markup. Perhaps the Web Tools XML editor is not the right tool for me.
>
> Peter
Previous Topic:Constants
Next Topic:installation issue with latest WST version release on WINDOWS XP
Goto Forum:
  


Current Time: Fri Mar 29 10:45:54 GMT 2024

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

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

Back to the top