XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Steen NielsenSubject: How to change the way whitespace is removed?
Author: Steen Nielsen
Date: 05 Nov 2010 06:19 AM
I am looking for a way to stop Stylus Studio from removing tabs and spaces on empty lines.
I don't like that specific feature, as I tend to insert a couple of linebreaks between { and }, and when I go up to the line, where I want to start typing, then the cursor is at the left side of the document, instead of at the indented position, where I was at just a few moments ago.

I understand the positive effect of removing empty lines, as it cuts down the document size, but I work a different way, so I am looking for an option to disable this feature.
Anybody know if it can be done (and where it is done)?

Postnext
Marc GiguereSubject: How to change the way whitespace is removed?
Author: Marc Giguere
Date: 10 Nov 2010 08:47 AM
I had a similar issue where I was creating a PDF and wanted to preserve my line breaks on output.

The only way I found was to manually edit the generated "<fo:block>" that surrounds my output and typing the " linefeed-treatment="preserve" " attribute. The result is: "<fo:block linefeed-treatment="preserve">".

Hope this helps.

Marc

Postnext
Steen NielsenSubject: How to change the way whitespace is removed?
Author: Steen Nielsen
Date: 11 Nov 2010 11:02 AM
Originally Posted: 11 Nov 2010 11:01 AM
I don't think that we are talking about the exact same thing.
I am refering to Stylus Studios way of removing trailing whitespace characters on each line inside the actual texteditor.

Postnext
Ivan PedruzziSubject: How to change the way whitespace is removed?
Author: Ivan Pedruzzi
Date: 11 Nov 2010 11:02 PM
I am not sure i get this.


In the XML editor if you indent the XML using TAB then press enter the caret moves to the next line at the same indentation

<root>
<item>
^caret here

</item>
</root>

Ivan Pedruzzi

Postnext
Steen NielsenSubject: How to change the way whitespace is removed?
Author: Steen Nielsen
Date: 29 Nov 2010 04:12 AM
Originally Posted: 29 Nov 2010 04:08 AM
Hi Ivan, yes it is related to this subject.

When you press enter the first time, then the textcursor correctly positions itselft on the next line, right below the beginning of <item> like so:
---
<root>
· · · <item>
· · · ^caret here
· · · </item>
</root>
---

But when you press Enter a couple of times more, the empty lines above the current one will no longer have any whitespace on it, like this:
---
<root>
· · · <item>


· · · ^caret here
· · · </item>
</root>
---

And as soon as you move your textcursor upwards, then it empties the latest inserted line, like this:

---
<root>
· · · <item>
^caret here


· · · </item>
</root>
---

I hope this better show what the issue is and I hope that there is a way around this behaviour, as I am getting pretty annoyed by it :-)

ps. each of the · represents a space character as several normal spaces could not be shown correctly in your forum.
For a forum for developers, I find it really odd, that you don't have a way to show code blocks (with colored coding).

Postnext
Ivan PedruzziSubject: How to change the way whitespace is removed?
Author: Ivan Pedruzzi
Date: 29 Nov 2010 11:28 PM

The editor does not insert whitespace until you type something, that's why when creating empty lines and then you move upward to the previous line the caret is positioned on the first column.

When going downward the caret is positioned conveniently according the previous line indentation without inserting whitespace but if you use the arrow up and down keys you can see the same behavior.


Ivan

Posttop
Steen NielsenSubject: How to change the way whitespace is removed?
Author: Steen Nielsen
Date: 01 Dec 2010 05:24 AM
Hmm, thats a.. different.. implementation that certainly differs from pretty much any editor, as far as I know.

I guess then, that there are no options or settings that can help me achieve the functionality which I am looking for?

If there are no options for setting this, I would like to make a feature request for it :-)
I'm sure that I'm not the only one who inserts 3-4 linebreaks before I go back to line 2 and start coding. After all, it gives a bit more room in the document to work with.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.