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 246642 - Custom elements not working in JSP/PHP/XHTML files
Summary: Custom elements not working in JSP/PHP/XHTML files
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2014-08-22 13:42 UTC by Vladimir Riha
Modified: 2014-10-06 13:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-08-22 13:42:10 UTC
Please try following steps in either JSP, PHP or XHTML file:
 - open the file in editor
 - paste


 - enable HTML error checking by clicking on bulb icon next to line 1
 - <mytag> is marked as error, click on the bulb icon next to this line
 - select "Add element "mytag" to the project's custom elements"

=> element should no longer be marked as erroneous, code completion should offer this element. You should be able to declare custom attributes the same way 

Actual result: NetBeans correctly adds the element to [project]/nbproject/customs.js but editor does not take this file into account. Try the same with HTML file, you'll see it works fine there.

Product Version: NetBeans IDE 8.0.1 (Build 201408212300)
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)