Codeblock formatting with filename


I’m looking for a way to paste codeblocks with a “contextual” information like filename.
Right now, I can just write it but it’s not part of the codeblock.

Example how I would like to see it in Obsidian:
Instead of C# I would like to give some filename.

So that when I see my code snippet, I see the filename of the snippet. Right now I can just write it above or below but it doesn’t get rendered as codeblock.

Is there any plugin / theme hack to implement this?


Try this: tadashi-aikawa/obsidian-embedded-code-title: It is an Obsidian plugin which can embeds title to code blocks. (

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.