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

Code Block

paddanpaddan14k downloads

Convert text into code blocks with automatic language detection.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

This plugin converts selected text or pasted text into a code block with automatic programming language detection. The languages that is detectable can be selected in the plugin settings. The language detection is provided by highlight.js and is in no means perfect, but it works most of the time. If it guesses wrong, remove that language from the list and try again.

HealthFair
ReviewSatisfactory
About
Convert selected or pasted text into a fenced code block with automatic programming-language detection. Choose which languages to include for detection; detection uses highlight.js and can occasionally guess incorrectly.
CodeLanguagesAutomation
Details
Current version
1.0.4
Last updated
2 years ago
Created
4 years ago
Updates
3 releases
Downloads
14k
Compatible with
Obsidian 0.12.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
paddanpaddan
github.com/paddan/code-block-plugin
GitHubpaddan
  1. Community
  2. Plugins
  3. Code
  4. Code Block

Related plugins

Templater

Create and use dynamic templates.

BRAT

Easily install a beta version of a plugin for testing.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Advanced URI

Control everything with URI.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Hot Reload

Automatically reload in-development plugins when their files are changed

Mermaid Tools

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

QuickAdd

Quickly add new notes or content to your vault.

Readwise Official

Sync highlights from Readwise to your vault.

Update modified date

Automatically update a frontmatter modified date field when the file is modified.