Dotty highlighting for Scala sources? #268
-
Currently, Scala 3 "Dotty" highlighting is activated only if the sources are marked as
In my case, the problem is that this doesn't work with mdoc:
I'm not sure if there's any good way to resolve this, without sacrificing either Scala 2 or Scala 3 syntax highlighting. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, there is no obvious default, as everyone would have different preferences. I kept the Scala 3 syntax separate for two reasons:
If you want to switch today, you can do this: laikaExtensions := Seq(SyntaxHighlighting.withSyntaxBinding("scala", DottySyntax)) |
Beta Was this translation helpful? Give feedback.
Yes, there is no obvious default, as everyone would have different preferences. I kept the Scala 3 syntax separate for two reasons:
The nearly non-existent adoption of Scala 3
If they are initially separate, users can still re-configure them to get Scala 3 syntax for a
scala
code block, the other way round would not be possible. If they are pre-merged you could not "configure them apart".If you want to switch today, you can do this: