用于JSP的JBoss工具:使内容辅助工作用于Bootstrap“类”如HTML编辑器 [英] JBoss tools for JSP: Make content assist work for Bootstrap "class" as in HTML Editor
问题描述
我正在Eclipse Luna中的HTML和JSP页面的JBoss Tools编辑器中工作。
I am working in JBoss Tools editors for HTML and JSP pages in Eclipse Luna.
我发现有关这两个编辑器的不同方式的一个有趣的事情是,有一段时间他们可以自动完成,但有时JBoss JSP编辑器失败。更准确地说,当涉及到Bootstrap 3的类属性时,HTML编辑器在JSP编辑器失败时工作。即使我可以使用JBoss HTML编辑器打开 .jsp
文件,问题仍然存在。
One interesting thing I found about the different way these two editors work, is that some time they can auto-complete, but sometimes JBoss JSP editors fails. More precisely, when it comes to the "class" attribute which come with Bootstrap 3, the HTML editor works while JSP editor fails. Even though I can open the .jsp
file with JBoss HTML editor, the problem persists.
有没有一些方法修复这个?他们在其他一些情况下一直工作,如下所示:
Is there some way to fix this?? They work consistently in some other cases, like this:
当我有一个< form>
在 enctype =
甚至 enc
中,当您按 alt + /
,您将有 enctype =application / x-www-form-urlencoded
,这是惊人的。
When I have a <form>
, and I type enctype="
or even enc
, in both editors when you press alt + /
, you will have enctype="application/x-www-form-urlencoded"
, which is amazing.
我附加GIF来显示这个奇怪的行为:
I attach GIF to show this strange behaviour:
推荐答案
感谢@Alexey Kazakov我已经检查了我的 login.jsp
页面,我发现 bootstrap.css
不在此页面中引入,但在其他页面中, jsp
以及 html
,这个文件是在< head>
部分引入的,所以编辑工作不正确,这是我的错。
Thanks to @Alexey Kazakov I have checked my login.jsp
page and I found that bootstrap.css
is not introduced in this page, but in other pages, jsp
as well as html
, this file is introduced in <head>
part. So the editor is not working wrongly, it's my fault.
所以JBoss工具保持原谅;。)
So JBoss Tools stay to be fantastic. ;)
这篇关于用于JSP的JBoss工具:使内容辅助工作用于Bootstrap“类”如HTML编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!