How get all standard html5 attributes ?

Hi,

 

I want to get all the HTML5 default attributes built in the system. These attributes are usually listed when I enter the tag and click the space-bar,. Can I get these default attributes by OPEN-API?  the attribute  such as "id,class,align..."

 

Thank you,

Metaer L

0
4 comments

Hi,

you can use 

HtmlNSDescriptorImpl.getCommonAttributeDescriptors(context)

for that

1
Avatar
Permanently deleted user

Hi  Dennis,

thanks,it's work. By the way, you know how to programmatically trigger the attribute's pop-up list by Open-API, instead of pressing the space bar?

 

ML

 

0

You can do that via

CodeCompletionHandlerBase.createHandler().invokeCompletion()

 

0
Avatar
Permanently deleted user

hello Dennis,

 

I use `CodeCompletionHandlerBase.createHandler(CompletionType.BASIC).invokeCompletion(project,editor)`,but  the system prompts me to the wrong:

 

```

com.intellij.codeInsight.completion.CodeCompletionHandlerBase.createHandler(Lcom/intellij/codeInsight/completion/CompletionType;)Lcom/intellij/codeInsight/completion/CodeCompletionHandlerBase;
java.lang.NoSuchMethodError: com.intellij.codeInsight.completion.CodeCompletionHandlerBase.createHandler(Lcom/intellij/codeInsight/completion/CompletionType;)Lcom/intellij/codeInsight/completion/CodeCompletionHandlerBase;

```

any suggestions?

 

thank you

ML

 

0

Please sign in to leave a comment.