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:36:00 UTC

[jira] [Commented] (NETBEANS-187) Add a new root node for a specific framework name and icon to the customs.json

    [ https://issues.apache.org/jira/browse/NETBEANS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16267103#comment-16267103 ] 

Christian Lenz commented on NETBEANS-187:
-----------------------------------------

When there is no icon set, no icon should be there or the purple bracets. If you want to add your custom tag or attribute right from the editor, what you can do, it should be added to a "custom" root node, because you don't know the name of the framework, if there is nothing.

The name of the root node, like the framework, should, if possible, also appear inside the code completion, but this is only a nice to have, the icon should be enough.

> Add a new root node for a specific framework name and icon to the customs.json
> ------------------------------------------------------------------------------
>
>                 Key: NETBEANS-187
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-187
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: editor - Completion & Templates, javascript - JSON, web - HTML Editor, web - HTML Project
>    Affects Versions: Next
>            Reporter: Christian Lenz
>
> Customs.json brings good and easy solution to add custom tags and attributes, which will appear inside of the code completion of the HTML editor (I guess). Unfortunately, it is only possible to have one customs.json per project. So sure you can have a big customs.json file for adding ionic tags/attributes, knockout attribues, polymer tags/attributes, vue attributes and so on to it, but you can't figure out easily which tags/attributes are for which language.
> So it would be better to have smth like this:
> {code}
> {
>    "ionic": {
>       "icon": "image-needed-for-code-completion-list",
>       "elements": {
>          // Whatever is supported here!
>       },
>       "attributes": {
>          // Whatever is supported here!
>       }
>    },
>    "polymer": {
>       "icon": "image-needed-for-code-completion-list",
>       "elements": {
>          // Whatever is supported here!
>       },
>       "attributes": {
>          // Whatever is supported here!
>       }
>    }
> }
> {code}
> As you can see, now you can fold the nodes and you can see that I use ionic and polymer and inside the elements and attributes. The icon is another great thing, because as you know for angular or knockout, it shows it infront of the line of the choosen element/attribute inside the code completion. So this will makes it very easy, adding new framework specific code completion for elements and attributes to the HTML editor.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)