Lightning-fast code block insertion with language selection and smart recents tracking
Stop fumbling with triple backticks and language names! This plugin makes inserting code blocks in Obsidian as easy as pressing two keys.
Example:
# Before (with "hello world" selected)
hello world
# After selecting "python"
```python
hello world
```
Press Alt + P for instant plain code blocks - perfect for pseudocode, terminal output, or quick snippets.
```
your code here
```
First time using the plugin? You'll see all languages alphabetically.
After using Python, JavaScript, and TypeScript a few times:
[Search for a language...]
⭐ Python
⭐ TypeScript
⭐ JavaScript
---
ActionScript
Bash
C
C++
...
Start typing "script"? Recent matches jump to the top:
Search: script
⭐ TypeScript
⭐ JavaScript
---
ActionScript
CoffeeScript
...
.obsidian/plugins/easy-codeblock/configure mobile toolbar (wrench icon) button.Easy Code Block: Insert code block and/or Easy Code Block: Insert code block (no language) and add it to Manage toolbar options by clicking the plus icon.Add global command section, search for Easy Code Block: Insert code block and/or Easy Code Block: Insert code block (no language).Don't like Alt + L and Alt + P?
Over 200 languages including:
Popular: JavaScript, TypeScript, Python, Java, C++, Rust, Go, PHP, Ruby, Swift
Web: HTML, CSS, SCSS, Vue, React (JSX/TSX)
Markup: Markdown, YAML, JSON, XML, TOML
Systems: Bash, PowerShell, Dockerfile, SQL
And many more! The full list is powered by Prism.js syntax highlighting.
Found a bug? Have an idea? Contributions welcome!
MIT License - feel free to use this in your own projects!
Made with ❤️ for the Obsidian community
Stop typing backticks. Start writing faster.