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
  • Themes
  • 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
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+
Platforms
Desktop, Mobile
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.

Share Note

Instantly share/publish a note, with the full theme and content exactly like you see in Obsidian. Data is shared encrypted by default, and only you and the person you send it to have the key.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Admonition

Admonition block-styled content.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

CSS Editor

Edit CSS snippet files.

Lapel

Show the heading levels in the gutter of the editor.

Custom Frames

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

PlantUML

Generate PlantUML diagrams.

Kroki

Render Kroki diagrams.