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.
Please sign in to leave a comment.
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:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
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
This is not supported yet, so, please, file JIRA request with this
example and client code example.
Alexander Babaev wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
http://www.jetbrains.net/jira/browse/IDEA-7639
And one more bug is there (in JS.JSP editing), I wrote about it here http://intellij.net/forums/thread.jspa?threadID=221751&tstart=0 Issue is here http://www.jetbrains.net/jira/browse/IDEA-7640
Thank you!
Alexander Babaev wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"