JBoss tools for JSP: Make content assist work for Bootstrap “class” as in HTML Editor

痴心易碎 提交于 2019-12-11 13:31:01

问题


I am working in JBoss Tools editors for HTML and JSP pages in Eclipse Luna.

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:

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.

I attach GIF to show this strange behaviour:


回答1:


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.

So JBoss Tools stay to be fantastic. ;)



来源:https://stackoverflow.com/questions/33293627/jboss-tools-for-jsp-make-content-assist-work-for-bootstrap-class-as-in-html-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!