SuperCollider Flavoured Code Blocks

The prospect of SuperCollider syntax highlighting in markdown code blocks makes me unreasonably excited.


1 Like

I believe discourse uses highlight.js, which doesn’t support supercollider, but allows you to define languages. I have no clue how one would go about adding a new language definition to this forum, though.

1 Like

hmmm. maybe this file can help us?

We can add more syntax support in the admin settings but only what highlight.js supports.

Maybe someone can contribute and add sc to it:

Also this might be an alternative solution but it seems kinda hacky. I didn’t read too much into it though:

You can use javascript highlighting to get a decent approximation of SuperCollider. I turned this on by default for code blocks, so things should look fine without having to do anything special.