How to line-wrap/word-wrap? [message #198108] |
Tue, 06 March 2007 14:27  |
Eclipse User |
|
|
|
Is there a way to have Eclipse line-wrap/word-wrap? [It's very hard to
read a piece of code coherently if you have to scroll horizontally as
well as vertically.]
Cheers
James
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to line-wrap/word-wrap? [message #200569 is a reply to message #200315] |
Mon, 19 March 2007 23:13  |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
James Robertson wrote:
> Hi Jacek
>
> I really appreciate you trying to help me, but I'm afraid I still don't
> under stand. Where ... do I 'set SWT.WRAP flag'?
>
> I have looked through the 'Preferences...' options in Eclipse and can
> find no such setting.
>
> Thanks
> James
James,
Jacek's suggestion was a code-level option, to apply if you were writing
your own editor or modifying the Eclipse source. And even with that,
from what little I've read, it will not work seamlessly with the Eclipse
Java editor - there are problems with the interaction with line-based
editor features like decorators, etc.
The Bugzilla report that was posted earlier in this thread goes into the
details of why this is such a can of worms and not as simple as it seems
on the surface.
Hope this helps,
Eric
By the way, are you the same James Robertson of Smalltalk fame?
>
> Jacek Pospychala wrote:
>> James,
>> if you try this code you can have a look how does basic SWT word-wrap
>> look like. Text is wrapped like in Windows Notepad - to not exceed the
>> visible area. You cannot for example set a certain column to be
>> wrapped. The StyledText is a widget used in standard text editor, so
>> in your own editor you only have to set SWT.WRAP flag.
> ...
|
|
|
Powered by
FUDForum. Page generated in 0.05336 seconds