You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (JIRA)" <ji...@apache.org> on 2017/11/27 17:21:00 UTC
[jira] [Created] (NETBEANS-186) Please add regex or wildcard
support into the customs.json file
Christian Lenz created NETBEANS-186:
---------------------------------------
Summary: Please add regex or wildcard support into the customs.json file
Key: NETBEANS-186
URL: https://issues.apache.org/jira/browse/NETBEANS-186
Project: NetBeans
Issue Type: New Feature
Components: javascript - JSON, web - HTML Editor, web - HTML Project
Affects Versions: Next
Reporter: Christian Lenz
If you have a custom tag like:
<test /> I can add this element to the customs.json file and I see no error this is fine.
When I have <test my-attr="2" /> I can add my-attr to the custom.json file too and everything is fine.
Often you have a lot of custom tags and attr and sometimes to identify your custom things, you have a prefix my myattr-color myattr-size myattr-whatever. So it would be nice to support wildcards or regex for elements and attributes inside the customs.json file that I can write:
{code}
"attributes": {
"myattr-*: {} // or
"myattr-.*?": {}
}
"elements": {
"ion-.*?": {} // All ionic tags have this prefix
}
{code}
Regards
Chris
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)