Skip to content

Dotty highlighting for Scala sources? #268

Answered by jenshalm
armanbilge asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, there is no obvious default, as everyone would have different preferences. I kept the Scala 3 syntax separate for two reasons:

  1. The nearly non-existent adoption of Scala 3

  2. 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:

laikaExtensions := Seq(SyntaxHighlighting.withSyntaxBinding("scala", DottySyntax))

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@armanbilge
Comment options

armanbilge Mar 21, 2022
Maintainer Author

@armanbilge
Comment options

armanbilge Mar 21, 2022
Maintainer Author

@jenshalm
Comment options

@armanbilge
Comment options

armanbilge Mar 21, 2022
Maintainer Author

Answer selected by armanbilge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #267 on March 21, 2022 17:44.