Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding custom html tags to Intellij?

When I hover over a custom html tag that I'm using from a platform (Polymer) or even a custom one I made it says that you can mark such a tag as custom somewhere. Is there a place to do this in Intellij? I'm using the latest version (14).

Here is a screenshot of what I'm talking about:

enter image description here

Any help would be appreciated! It would be nice to get rid of all these error highlights when I'm working with Polymer. Thanks!

like image 793
shan Avatar asked Nov 30 '14 08:11

shan


People also ask

How do I add HTML to IntelliJ?

From the main menu, select File | New, and then select HTML File from the list. IntelliJ IDEA creates a stub file based on the HTML file template and opens it in the editor.

Can you write HTML and CSS in IntelliJ?

By default, IntelliJ IDEA shows on-the-fly preview only for HTML and CSS code. To enable Live Edit in JavaScript, select the JavaScript, HTML and CSS option.

How do I create a new HTML project in WebStorm?

To create an empty WebStorm projectClick Create New Project on the Welcome screen or select File | New | Project from the main menu. The New Project dialog opens. In the left-hand pane, choose Empty Project. In the right-hand pane, specify the application folder and click Create.


1 Answers

Place the caret over the highlighted tag, hit ALT+ENTER and select Add tag to custom tags.

However that works only for current project. If you want to set the ignored tags globally, try this:

Go to Settings/Inspections, find the Unknown HTML tag inspection, select the Default profile instead of Project Default and specify the tags separated by comma in the textfield in the bottom right corner. Here is a screenshot:

Configuration section

like image 86
Bohuslav Burghardt Avatar answered Oct 02 '22 17:10

Bohuslav Burghardt