Scala IDE - Play 2 Eclipse Plug-in not highlighting syntax for Scala HTML Templates

前端 未结 2 765
伪装坚强ぢ
伪装坚强ぢ 2020-12-28 22:03

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 highli

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-28 23:00

    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.

提交回复
热议问题