Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Embedded Code Title

tadashi-aikawatadashi-aikawa15k downloads

Embed a title in code blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates9

This is an Obsidian plugin which can embeds title to code blocks.

⚠ There is a possibility that this plugin doesn't work someday because it depends on the internal DOM structure of Obsidian.

Demo

🖋 Examples

No file name

```python
def main():
    pass
```

↓

img.png

No file name but show a language name

```python:
def main():
    pass
```

↓

img_1.png

With a file name

```python:main.py
def main():
    pass
```

↓

img_2.png

With a file name includes half spaces

If you configure as the follows.

img_4.png

Then

```python:main\sincludes\sspace.py
def main():
    pass
```

↓

img_3.png

🌍 Use on Obsidian Publish

If you can use a custom domain on Obsidian Publish, you can also use features of this plugin on the published site by Obsidian Publish with publish.js and publish.css. You can download publish.js and publish.css on the Latest release page. Please see my published site as examples.

🖥️ For developers

Development

task init
task dev

Release

task release VERSION=1.2.3
64%
HealthFair
ReviewSatisfactory
About
Embed titles into code blocks to display language names or filenames above fenced code. Render filenames with escaped spaces and publish those titles on Obsidian Publish sites using supplied publish.js and publish.css.
CodePublishingCSS
Details
Current version
0.5.5
Last updated
4 years ago
Created
5 years ago
Updates
9 releases
Downloads
15k
Compatible with
Obsidian 0.9.12+
License
MIT
Report bugRequest featureReport plugin
Author
tadashi-aikawatadashi-aikawa
github.com/tadashi-aikawa
GitHubtadashi-aikawa
  1. Community
  2. Plugins
  3. Code
  4. Embedded Code Title

Related plugins

Templater

Create and use dynamic templates.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

PlantUML

Generate PlantUML diagrams.

Lapel

Show the heading levels in the gutter of the editor.

Admonition

Admonition block-styled content.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

VSCode Editor

Edit Code Files like VSCode.

JS Engine

Run JavaScript from within your notes.

CustomJS

Reuse custom JavaScript across desktop and mobile.

Permalink Opener

Open URLs based on a permalink or slug in the note properties. Useful with static site generators such as Jekyll, Hugo, Eleventy, etc.