Dotty highlighting for Scala sources? #268
Answered
by
jenshalm
armanbilge
asked this question in
Q&A
|
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. |
Answered by
jenshalm
Mar 21, 2022
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)) |
4 replies
Answer selected by
armanbilge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
scalacode 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: