User Defined File Types and Custom HTML Tags

Custom HTML Tags
Firstly I have an environment where our HTML/JSP and any other webroot served content gets parsed with a servlet that picks up and translates special XML tags it finds in the content into HTML and/or JavaScript.

It's nice that I can add unknown HTML tags and cause the IDE to recognize that these are not errors but I wish for the following:

  • Select which attributes apply to which custom tags

  • Select which highlighting/file type is associated with the content of a particular node; for example: I have a custom tag whose content is always JavaScript, I'd like the syntax highlighting, inspections, auto completion and formatting.

Basically I'd like to see a popup with a text area for the tag name, button for whether or not case sensitivity is an issue, list box with attributes associated with this tag. Each attribute would have a custom dialog allowing you to specify if the name was case sensitive, the type of content allowed in the attribute value and if we're pushing it a regular expression field for validation. Finally I'd like to see a check box stating whether or not the tag may have a body and if so then some more options as to what tags are allowed in the body or which language syntax and ruleset IDEA should use for the body of that tag.

User Defined File Types
In the vein of the last paragraph, I'd like to see a way that we can associate and create new syntax highlighting types through a gui for either a project or IDE wide usage. With import and export capabilities. This would include functionality above for tag based languages and then simple highlighting and coloring for other languages. Perhaps the ability to specify a list of keywords as well as a list of context provided objects. An example of context provided objects would be the document object, the location object and the navigator object you'd get in a JavaScript block. These exist for you and are provided by the browser.

For tag based languages perhaps the allowance of a DTD or Schema upload as a base would be great. Then allowing us to specify to IDEA which highlighting should be used for CDATA areas defaulting to regular text for anything not indicated by the user.

Is there a way to manually write custom highlighting for our own file types at the moment? Where can I find this information?

Comment actions Permalink

some of your suggestions already exist and would allow for plugins/user interface to extend the standard JSP/HTML features:

Allow customizations of default FileTypes

Need ability to override IDEA's builtin ReferenceProviders

Provide OpenAPI to register JS support for JSP custom tag attributes

OpenAPI: extension points for custom XML content validation

API for embedding custom languages into XML & Co

and these are just a few of them, you will find more requests in that direction

you can do custom highlighting in your own filetype, just have a look at then OpenAPI and

Comment actions Permalink

Many of these, especially the last one ring very true. I voted on the appropriate ones. Thanks so much for the links. Now to get them implemented.... Is there a page with a decent API documentation on these plugin bits they are talking about? I'd like to take a stab at writing a plugin but not sure where to start.

Comment actions Permalink

a good starting point is

other than that, the JavaDoc and example plugins of DevKit (click on "Plugin Development")

if you have specific questions you can watch the OpenAPI forum here

Comment actions Permalink

Buy Buying Burberry is known as a fantastic investment. Just seeing the will give you some different feelings. The company offers an outstanding line of fashionable, many of which offer a stylish take on old world qualities such as flawless design and unique attention to detail. These are popular among those collectors. The more people know about these, the more they love them. have an Italian inspiration to them. The company is part of the Geco and has such has a small stake in a much larger company. are designed to have top of the line modern technology included in them, which is seen throughout each of the pieces. These have been technologically advanced for some time. The company has been producing of this quality for over 20 years, and many of their pieces are sought after by those who for accuracy and function in some of the worst situations. The Tudor have a history that falls back on their name. These models of are designed to give divers the needed accuracy and technology they need when their lives depend on it. Several of the Immersion have been used in military diving while others are established as recreational pieces such as the scuba diving Immersion are available in a number of styles. One of the most well known is the Deep Quartz alarm chronograph. This is unique because of its look and function. It is a stainless steel bodied that has a date system as well as a chronograph alarm system in it. It also features a Swiss made quartz mechanism within it and is 10 atm water resistant. While it works like a charm, the is also stylish with its stainless steel bracelet design, featuring a safety clasp. Another important model in the Immersion line is the Black Underwater With a further benefit of 10 atm water resistance, this is a great investment for the water lover. It has a great looking black dial with florescent numbers on it, for underway seeing. It also has a stainless steel case and a domed mineral glass. There is a date window on the, and it features a dial with sunray effect and applied indexes. Other popular options for the Immersion include the Club Immersion, Full Underwater Chronograph and the Quad Quartz, each offering something new and advanced for the user. replica swiss valjoux 7750 can be bought online at low price as long as you have the ability to find them. These are well known around the world as leading underwater, designed to work in harsh conditions flawlessly. You are sure to enjoy your life with such a Try such a and you will understand what I am saying.

Original message URL:


Please sign in to leave a comment.