在Eclipse中更改JSF/Facelets EL表达式的颜色/语法突出显示 [英] Change color/syntax highlighting for JSF/Facelets EL expressions in Eclipse

查看:95
本文介绍了在Eclipse中更改JSF/Facelets EL表达式的颜色/语法突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了两个插件:用于Eclipse Indigo的WTP和JBoss Tools(3.3),但是找不到在JSF中配置EL表达式的特殊语法突出显示的方法(.xhmtl Facelets视图).

I have installed both plugins: WTP and JBoss Tools (3.3) for Eclipse Indigo, but could not found a way to configure special syntax highlighting for EL expression in JSF (.xhmtl Facelets views).

EL表达式看起来与其他html属性类似,但是我希望它们具有特殊的突出显示(所有#{...}表达式都以其他颜色突出显示),因此可以更轻松地理解正在呈现的内容并浏览代码更快.

The EL expressions they look like other html-attributes, but I want they have special highlighting (highlighted with other color for all #{...} expressions), so one can easier understand what are being rendered and navigate through the code faster.

谁知道,在Eclipse中是可能的.我知道,使用IntelliJ IDEA可以做到这一点,但是在我的公司中我必须使用Eclipse.

Does anyone know, is it possible in Eclipse. I know, that with IntelliJ IDEA one can do it, but in my company I must use Eclipse.

谢谢!

推荐答案

在Eclipse中,至少在Eclipse Indigo 3.7和WTP 3.3中,这是不可能的.尚不可能使用JBoss工具,大概是因为它使用了内部的WTP编辑器.

This is not possible in Eclipse, at least of Eclipse Indigo 3.7 and WTP 3.3. It is also not possible using JBoss Tools yet, presumably because it uses the WTP editors under the hood.

我认为值得研究 Eclipse错误号. 298884 ,因为这里提到需要在JSF页面中对表达令牌进行EL语法着色.不用说,该错误尚未修复,并且相当长一段时间都没有任何活动.

I suppose it would be worth looking at Eclipse bug no. 298884, for there is mention of needing EL syntax coloring of expression tokens within a JSF page. Needless to say, the bug hasn't been fixed yet, and there hasn't been any activity for quite some time.

这篇关于在Eclipse中更改JSF/Facelets EL表达式的颜色/语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆