score:10
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.
score:2
I assume you don't open the file with the correct editor. Right click your *.scala.html file and select Open with...
, select Other
, then scroll to the bottom and select Template Editor
. Then the syntax highlighting should apply.
To make that change permanent, you can press Ctrl-3
and search for File Associations
. There you need to select *.html and move the Template editor
to the top of the Associated editors
.
Source: stackoverflow.com
Related Query
- Scala IDE - Play 2 Eclipse Plug-in not highlighting syntax for Scala HTML Templates
- Scala IDE not working properly in Eclipse Luna for Java EE
- Different color for Types/methods in syntax highlighting in Eclipse for Scala
- "object index is not a member of package views.html" when opening scala play project in scala ide
- Errors in Eclipse for Scala project generated by Play Framework
- Scala Error: Could not find or load main class in both Scala IDE and Eclipse
- Logging syntax for Play Framework 2 in Scala
- Debug not working with play framework activator, scala and eclipse
- Does Scala IDE has *.sbt syntax highlighting support?
- Scala Syntax Highlighting in Eclipse
- Enable Task Tags in Scala IDE for Eclipse
- Autocomplete for Play 2.0 views paths in Scala controllers in Eclipse
- Scala Main Class not found in Eclipse ide
- Scala IDE supporting autocompletion and syntax highlighting
- Why can I not mix Scala code with HTML here in Play Framework 2 views?
- Akka Scheduler throws exceptions only in MicroKernel but works fine in eclipse IDE for scala
- Eclipse Scala plugin not showing documentation for classes and methods in scala projects
- Unable to use ScalaCheck with Scala IDE for Eclipse
- Syntax highlighting problems in Scala Eclipse
- Play scala template syntax for a string
- issue with the code completion in Scala IDE for Eclipse
- how to install scala plugin for latest eclipse ide (version 2020-03)
- Unable to install Scala IDE plug-in for Eclipse Juno
- Play framework scala Intellij IDE action not found
- bad symbolic reference in scala ide for eclipse
- future.recover in Play for Scala does not compile
- Nested futures in Play for Scala does not compile
- Why arity-1 syntax in scala does not compile for self invocation?
- Scala IDE for Eclipse compiler support
- Eclipse Oxygen and Scala IDE 4.7 crashes with play framework 2.6.6 project in workspace
More Query from same tag
- How to Rewrite Function Using Context Bounds?
- Scala: Companion objects for doubly F-Bounded Polymorphic types
- What is a good way to get a value in a Scala macro?
- Find last time occured based on a time window with spark/scala for each group
- When building Scala(2.7.0) maven project getting error "error while loading Consumer" with Java 8 in IntelliJ
- Strange error message on scala 2.10 / sbt 0.13 upgrade
- Writing scala enum into database and reading from it
- scalikeJDBC + postgres - No suitable driver found for
- Why do i need to create a class in Java program?
- Why i'm not getting Ask timeout exception?
- Conversion to tuple with by-name parameter
- Merging list of tuples in scala based on key
- Is there are any general solution that can handle adding same generic type addition in chisel3?
- Profiling a Scala Spark application
- Eclipse(STS) break breakpoint not hit using maven surefire plugin and scala ide
- How to change the datatype of a column in StructField of a StructType?
- Running a function against every item in collection
- Spark: Splitting JSON strings into separate dataframe columns
- Spark DF create Seq column in witcolumn
- how to use spray json4s support to marshal json data as snake case
- What is the shortest notation to define an operator as a method alias in Scala?
- Unable to save dataframe in redshift
- Netflix Astyanax in scala
- How to get file of RDD in spark
- Spark: Filtering based on property files
- How resolve version in duplicated transitive dependencies?
- Scala Spark how to use --files
- Configuring junitxml output for specs2 tests in sbt 0.10
- How can a "while remaining" algorithm be converted to functional style?
- Comparison between fasttext and LDA