This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 75958 - Closing Quotes Duplicated in Non-Java Editors (JSP, XML, HTML Pages)
Summary: Closing Quotes Duplicated in Non-Java Editors (JSP, XML, HTML Pages)
Status: RESOLVED DUPLICATE of bug 149271
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-05 01:43 UTC by William Leonard
Modified: 2008-10-13 10:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Leonard 2006-05-05 01:43:03 UTC
I'm not sure what this feature is called, but in a Java file if I type a quote
preceding a quote, the editor actually overrides the following quote. For
example, take the follwing line of code:

String("X");

If I insert my cursor after the X and type a quote, it will just override the
existing quote. This is desired behavior. However, in JSP pages, it doesn't work
this way and it's quite frustrating, because you always end up with
double-quotes (because you expect the same behavior as in the Java file) or you
have to move your hand to the arrow keys to advance the cursor one space over
the quote to complete typing the line. For example:

<jsp:forward page="X"/>

Inserting your cursor before the X and typing a quote will yield the following:

<jsp:forward page="X""/>
Comment 1 Jiri Prox 2006-05-05 08:02:28 UTC
reassigning to web
Comment 2 Marek Fukala 2006-05-23 12:50:13 UTC
This is how it currently works for all non-java editors (html,jsp,xml,...). I
think we could improve it in the proposed way.

And what about other improvements like the following?
<tagname attr=| + " => <tagname attr="|"
<tagname attr| + = => <tagname attr="|"

IMHO they make sense for XML and JSP tags and JSP directives where the quotes
are mandatory.
Comment 3 William Leonard 2007-10-31 16:28:52 UTC
I'm changing this to a defect because the inconsistency is so annoying. I don't want to mentally have to track of the
type of file I'm working in when coding. I've also changed the component to editor.

/Brian
Comment 4 Jan Lahoda 2007-11-01 09:24:33 UTC
Not sure why this was reassigned to the editor module - this feature is currently implemented directly in language
plugins (ie. in Java editor), not in the language agnostic editor module. Anyway, sounds more like and enhancement to me...
Comment 5 Marek Fukala 2008-10-13 10:55:37 UTC

*** This issue has been marked as a duplicate of 149271 ***