Sign in
Log inSign up

Please add Scala code syntax highlighting

Mark Hammons's photo
Mark Hammons
·Feb 14, 2022·

1 min read

I've moved from dev.to to hashnode because dev.to gets blocked on reddit by default. Hashnode is nice, but scala syntax hightlighting is missing compared to dev.to.

example:

def fib(n: Int): Int = n match
  case 0 | 1 => n
  case _ => fib(n-1) + fib(n-2)