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

Replace Pencil

penytpenyt249 downloads

Easily replace the custom variable in the code block.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

This is a simple plugin for Obsidian that can let you easily replace the custom variable in the code block!

How to use?

  • Find and install replace-pencil plugin
  • In Settings -> Replace pencil, you can change placeholder prefix.
  • Just simply put any thing that you want to replace in <> (or any placeholder you set), in Reading Mode, the input slot and "Clear" button will appear.
  • Type into the input box, and it will automatically replace the words.
  • Press the "Copy" button at the right of the code block, the text that already replaced will be copied to your clipboard!
  • To reset everything, click the eraser button in the obsidian left sidebar. It will immediately reset everything.

DEMO

Initial Look: Initial Look

Replace Pencil Working: Replace Pencil Working

Donate

77%
HealthExcellent
ReviewSatisfactory
About
Replace custom placeholders inside code blocks with live input fields in Reading view. Set a placeholder prefix, type to instantly update the code, copy the replaced result to clipboard, or reset all changes with the eraser button.
CodeInterfaceSidebar
Details
Current version
1.0.5
Last updated
11 months ago
Created
Last year
Updates
6 releases
Downloads
249
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
penytpenyt
github.com/penyt
GitHubpenyt
  1. Community
  2. Plugins
  3. Code
  4. Replace Pencil

Related plugins

Hide Sidebars on Window Resize

Automatically hides the sidebars when your window is narrow on window resize.

Inline Encrypter

Encrypt secrets in your notes.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Templater

Create and use dynamic templates.

Recent Files

Display a list of recently opened files.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Mermaid Tools

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

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Longform

Helps you write and edit novels, screenplays, and other long projects.