Code completion in html
Are we supposed to have CSS code completion in an html page?
Meaning if I have:
]]> where the | is the cursor, hitting command + space does
nothing.
This is with the css added as part of an import, which is part of site
mesh, not the page itself. In other words this means the css completion
would have to be available module-wide not directly to jsp.
I ask cuz it doesn't work :)
R
Please sign in to leave a comment.
Make sure you linked css to an html via <link/>
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
That's exactly the problem. The will be there in the generated page, but it's added by a servlet filter (sitemesh). We need some way to tell IDEA "hey, you can use these CSS file for this collection of pages -- don't worry to check ]]> tags, something will figure out how to do that at runtime".
Where "collection of pages" is something like:
- A whole web application
- A subtree in a web application
- A resource pattern (*.html)
BTW, this is not exclusive to CSS. We need a way to do the same thing for scripts, includes, etc.
I guess this is not supported?
@import ""; @import ""; ]]>
R
Not yet.
Robert S. Sfeir wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
k, I filed 2 issues on this:
1- even if I use I don't get code completion, even if I'm in the SAME document the link is specified, forget across documents... the simple way doesn't work. 2-
>>Make sure you linked css to an html via <link/>
This is a very big problem with IDEA indeed. Not only for CSS but for JS
too. A lot of frameworks 'decorate' or 'inject' 'relations' at runtime
nowadays.
The problem is not only with HTML, but with JavaScript files too(or
maybe with other custom file types): to tell IDEA that it can use the
functions/resources from one file in other files.
IMHO this problem should be solved before the final release of IRIDA.
Ahmed.
I suggested a solution which would solve a little bit of the riddle,
though not all of it. Much like we import external resources for
resolving entities, the same thing can be applied to this case. Say you
have a c:url value="/foo/bar.html" if idea discovers that it can't find
the file, there could be a quick fix option which would popup a relation
window where there would be a list of files from which we could pick the
file which relates to this one. Then IDEA can map the entry in the
module or project so it can find it later. This would then lead to
being able to draw graphs of document relationships if we wanted to so
we can see file dependencies visually.
R
Can you link to the issues you submitted to upvote them? It is 2014 and it seems the problem still remains.