Scala IDE - Play 2 Eclipse插件不突出显示Scala HTML模板的语法 [英] Scala IDE - Play 2 Eclipse Plug-in not highlighting syntax for Scala HTML Templates

查看:208
本文介绍了Scala IDE - Play 2 Eclipse插件不突出显示Scala HTML模板的语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Scala IDE - Play 2插件(从。您必须手动将项目标记为Scala项目,使用 Configure>从项目上下文菜单中添加Scala Nature


I installed the Scala IDE - Play 2 plug-in (from http://download.scala-ide.org/play2/nightly_3.0-M_juno_2.10-M/site/ ) whereas the Route Editor displays proper syntax highlighting, the Template for Scala does not. Also, it also does not allow me to "Enable" the Syntax Highlighting options in Eclipse's Preferences -> Play -> Template - Syntax Coloring.

Therefore, the Scala syntax is not being highlighted inside main.scala.html and index.scala.html

Am also using http://download.scala-ide.org/nightly-scala-ide-juno-210x for Eclipse Juno.

-James

Right mouse click on above image to open in a new browser tab to see image in full resolution.

解决方案

maxmc and valentin_nasta are both right.

We discovered recently that if Eclipse WTP is installed, the bundled html editor is picked over the Play template editor. It is something we will try to improve.

At the moment, you can force Eclipse to use the Play template editor by selecting Open with ... > Template Editor from the context menu, or changing the default for *.html files in Preferences > General > Editors > File Associations.

For the stack trace, it is a known problem. You have to manually mark the project as a Scala project, using Configure > Add Scala Nature from the project context menu.

这篇关于Scala IDE - Play 2 Eclipse插件不突出显示Scala HTML模板的语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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