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 101866

Summary: "smart" quotation marks do not work
Product: javascript Reporter: Pavel Buzek <pbuzek>
Component: EditorAssignee: Jan Jancura <jjancura>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Pavel Buzek 2007-04-19 23:17:32 UTC
I think you should either make the quotation marks ('"') work at least as well
as in Java or make the editor just do what I type. Making them _somewhat_ clever
is pretty annoying.

Type "aaa" then delete the last ", type it again you get "aaa"".

More complex: I am trying to write a String that contains:
  I say: "Hi!", you say "Bye!".  
I have to escape the " so it will look like:
  "I say: \"Hi!\", you say \"Bye!\"."
I start typing "I say|" - so far so good. When I have "I say: \|" and I press "
it does not add anything. I type on to "I say: \"Hi\| now I type " and it will
add "". In short, typing every odd " at the end of string literal will be
ignored, every even " will be added twice.
Comment 1 Jan Jancura 2007-04-20 10:20:19 UTC
Reproducible. I will look at it.
Comment 2 Petr Jiricka 2008-02-25 17:34:13 UTC
Fixed in build 682.
Comment 3 polan 2008-06-18 12:53:23 UTC
Verified.