Suggestion about CSS classes resolving

I have a project with multiple JSP files, and many-many includes. Includes are often done by custom tags, so, they are not visible through JSP itself.

Also I've some CSS and use them in my JSP files. But all classes in CSS are highlighted as unused, because they are really not used in files, where CSS obviously included.

Is it possible to create a feature "global CSS" or "module CSS", when CSS is marked as globally used and all JSP/HTML in a module/project is used with this CSS?

Or maybe some flag like "use this CSS for this file". I'd like to use all the features (autocompletion, intensions) for CSS classes, but can't.

6 comments
Comment actions Permalink

IDEA in fact uses appropriate css files for jsp editing (if the jsp file
does not have explicit LINK) so completion/navigation still will be
available. However, embedded css now is not usable outside containing
file (so will be highlighted as unused, etc).

Alexander Babaev wrote:

I have a project with multiple JSP files, and many-many includes. Includes are often done by custom tags, so, they are not visible through JSP itself.

Also I've some CSS and use them in my JSP files. But all classes in CSS are highlighted as unused, because they are really not used in files, where CSS obviously included.

Is it possible to create a feature "global CSS" or "module CSS", when CSS is marked as globally used and all JSP/HTML in a module/project is used with this CSS?

Or maybe some flag like "use this CSS for this file". I'd like to use all the features (autocompletion, intensions) for CSS classes, but can't.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

And what happens, if the CSS file itself has the name "main.css.jsp"? It is dynamic file, so, I called it this way. Will it be embedded CSS, or not? File sample is below:

<%@ page contentType="text/css" %>
<%@ taglib uri="/WEB-INF/jdnevnik.tlb" prefix="jd" %>

.jdTitle

.jdBlogImage

0
Comment actions Permalink

This is not supported yet, so, please, file JIRA request with this
example and client code example.

Alexander Babaev wrote:

And what happens, if the CSS file itself has the name "main.css.jsp"? It is dynamic file, so, I called it this way. Will it be embedded CSS, or not? File sample is below:

<%@ page contentType="text/css" %>
<%@ taglib uri="/WEB-INF/jdnevnik.tlb" prefix="jd" %>

jdTitle {
width: 100%;
font-family: <jd:config name="titleFont"/>;
height: 7.8em;
}

jdBlogImage {
color: <jd:config name="textLighterColor"/>;
position: absolute;
left: 5px;
top: 18px;
padding: 2px;
}



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Thank you!

Alexander Babaev wrote:

http://www.jetbrains.net/jira/browse/IDEA-7639


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.