We can already set the language for fenced code blocks, e.g. ```bash to start a properly highlighted shellscript block
In pandoc-style markdown (but not most others, I think), you can also set a highlighting language for inline code, e.g. `print('hello world!')`{.python} for a colorful inline python snippet. This would be a great feature in Obsidian for making beautiful computing notes
I would also find this very useful. I often write myself code blocks with full examples and then I write a prose section or bullet points with inline code surrounded by English so I can get a theoretical idea of what the code is supposed to do.
Here is an example. (This note is network engineering commands, but I do the same thing for proper code.)
As you can see, there is no consistent highlighting across inline and code blocks.
I would love the ability to specify how the inline code snippets should be highlighted on a per-note basis using a YAML header. This would allow me to make high-quality evergreen notes with consistent code formatting.
The syntax used is {python} def func():. This was easier to get going at first than the pandoc syntax (def func():.{python}). However, if there is demand to change to this syntax (or another syntax), then let me know and I can try and implement this!