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 173554 - [code completion] autocompletion for script and style tags doesn't work
Summary: [code completion] autocompletion for script and style tags doesn't work
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-02 09:38 UTC by matusdekanek
Modified: 2010-05-08 06:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (397.61 KB, text/plain)
2009-10-02 09:39 UTC, matusdekanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matusdekanek 2009-10-02 09:38:42 UTC
Product Version: NetBeans IDE 6.8 Beta (Build 200909302201)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Linux version 2.6.28-15-generic running on i386; UTF-8; en_US (nb)

-open some file with html code(.html,jsp,php in a web project/php project)
-use code completion to write some html tag, do not close the tag manually (leave it in form like <sometag )
-try to close it by using cC
The code completion offers closing of the tag (completion of the tag to <meta> or <script> etc) choosing this does not
do anything though. The tag must be closed manually (inserting the '>' character).
Comment 1 matusdekanek 2009-10-02 09:39:26 UTC
Created attachment 88713 [details]
messages.log
Comment 2 Marek Fukala 2009-10-26 11:20:11 UTC
meta tag as forbidden end tag so the completion does't appear.

the completion script and style tags offers the end tags, but only with the < prefix. The end tag autocompletion doesn't
work here. This is a valid issue, though minor.

The reason why this doesn't work is the lexing of the text after the <style> or <script> tags. The rest of the file
until coresp. end tag is lexed as script or style, so the generic html cc doesn't work there.
Comment 3 Marek Fukala 2010-05-08 06:43:56 UTC
already fixed