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
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
John SaundersSubject: Hyphen (Dash) in XML Comment Ends Comment
Author: John Saunders
Date: 21 Dec 2006 02:31 PM
To reproduce this annoyance, start typing a comment in the XML editor:

"<--"

The XML editor finishes the comment

"->"

This is first of all the wrong number of hyphens. One more is needed if I'm going to type anything in the middle.

To continue, enter two spaces and a dash, then back up to between the spaces. Then enter type a hyphenated word:

" hyphenated-"

As soon as I type the hyphen (dash), Stylus studio enters "->"!


This happens with Professional Suite 2007 build 735e.

John

Postnext
Tony LavinioSubject: Hyphen (Dash) in XML Comment Ends Comment
Author: Tony Lavinio
Date: 24 Dec 2006 01:05 AM
A comment is <!--, not <--.
This could be why you are seeing the behavior you have indicated.

Postnext
John SaundersSubject: Hyphen (Dash) in XML Comment Ends Comment
Author: John Saunders
Date: 04 Jan 2007 11:20 AM
Originally Posted: 04 Jan 2007 11:21 AM
The "<--" was a typo. It's "<!--" which produces the problem. Please try it.

As an aside, I tried typing "<--" to see what would happen. I got as far as "<-", when Stylus Studio completed it with "->". What's that meant for?

John

Postnext
Minollo I.Subject: Hyphen (Dash) in XML Comment Ends Comment
Author: Minollo I.
Date: 04 Jan 2007 03:52 PM
You are right; the current behavior is incorrect, and it's unbearable when (like in your case, I believe) the "Add closing tag when creating new tag" option in Tools > Options > Editor General is checked.

We will fix this in the next maintenance package.
Thanks.

Postnext
Boss AtHomeSubject: Hyphen (Dash) in XML Comment Ends Comment
Author: Boss AtHome
Date: 08 Nov 2007 01:36 PM
Originally Posted: 08 Nov 2007 01:33 PM
As of build 894m / WinXP dashes in comments are still acting this way when "add closing tag" option is enabled; is this still scheduled for correction? At the moment it doesn't seem possible to use a hyphen or a dash in a comment unless that option is disabled -- even going back after the comment close has been added triggers a new second (and obviously incorrect) closing --> to be added.

Postnext
Boss AtHomeSubject: Hyphen (Dash) in XML Comment Ends Comment
Author: Boss AtHome
Date: 26 Nov 2007 10:34 PM
bump ... any feedback? Should I open a new topic?

Postnext
Minollo I.Subject: Hyphen (Dash) in XML Comment Ends Comment
Author: Minollo I.
Date: 26 Nov 2007 10:58 PM
No need for a new topic; a fix for this issue should be part of the coming v2008 release, which will become public in less than two weeks.

Posttop
Boss AtHomeSubject: Hyphen (Dash) in XML Comment Ends Comment
Author: Boss AtHome
Date: 26 Nov 2007 11:04 PM
fantastic! it's one of those gotchas that my brain just can't quite stop my fingers from committing willynilly or willy nilly but not willy-nilly :-)))

 
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.