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.

66%
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.

QuickAdd

Quickly add new notes or content to your vault.

Homepage

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

BRAT

Easily install a beta version of a plugin for testing.

Mermaid Tools

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

Readwise Official

Sync highlights from Readwise to your vault.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

Easy Typing

Auto format when typing.

PlantUML

Generate PlantUML diagrams.