Syntax highlighting for R

R code blocks are shown as “unknown language”

I try to mark code blocks as “R” for syntax highlighting but Obsidian says “unknown language”. Prism.js seems, of course, to support R. Does Obsidian not load the full language set of prism.js? Where can I configure which languages I need?

Would the “This is Ridian: R in Obsidian” plugin be of any help …

Ridian website

1 Like

Wow. OK. An R-Studio replacement was not exactly what I was looking for. I’d be happy with proper Syntax highlighting as it works fine with many other languages.
But Ridian sure looks extremely interesting and I’ll give it a try.

Where do you get “unknown language” for ```r ? It seems to work now in both live preview and reading mode as far as I can tell.