Skip to content

Why I can not highlight Scala functions? #3668

Closed Answered by Norlandz
Norlandz asked this question in Q&A
Discussion options

You must be logged in to vote

I dont have deep knowledge with PrismJs.
But I check the source code again today.

And found the following:

delete Prism.languages.scala['class-name'];
delete Prism.languages.scala['function'];
delete Prism.languages.scala['constant'];

I commented out these lines, and the Scala function code syntax highlight works.

Dont know why these lines are there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Norlandz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant