The Java – Scala ide – play 2 Eclipse Plug-in does not highlight the syntax of scala HTML templates
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/ )The route editor displays the correct syntax, but the scala template does not In addition, it does not allow me to "enable" syntax highlighting options – > play – > template – syntax coloring in eclipse preferences
Therefore, in main scala. HTML and index scala. Scala syntax is not highlighted in HTML
I also use http://download.scala-ide.org/nightly-scala-ide-juno-210x For eclipse Juno
-James
Right click the image above to open it in a new browser tab to view the image at full resolution
Solution
Maxmc and Valentin_ Nasta was right
We recently found that if eclipse WTP is installed, the bundled HTML editor is selected through the play template editor This is something we will try to improve
At present, you can force eclipse to use the play template editor by selecting open with... > Template editor from the context menu, or change the default to * HTML files in Preferences > General > editor > file association
For stack trace, it is a known problem You must manually mark the project as a Scala project and use configure > to add Scala nature from the project context menu