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

Masking as MD

ahseygahseyg10 downloads

Open non-markdown files (.py, .html, .txt, .js, .css, etc.) as editable text documents directly in Obsidian.

Add to Obsidian
Masking as MD screenshot
Masking as MD screenshot
Masking as MD screenshot
  • Overview
  • Scorecard
  • Updates3

Türkçe · Report Bug

Masking as MD for Obsidian

Transform Obsidian into a powerful code editor for your non-markdown files. This plugin allows you to open, view, and edit files like .py, .js, .html, .css, and .json natively within your vault, complete with syntax highlighting and line numbers.

Open source · MIT License · Contributions welcome


Features

  • Native Code Editor Experience — turn Obsidian into a lightweight IDE for your scripts and config files
  • Syntax Highlighting — built-in CodeMirror support for popular programming and markup languages
  • Customizable Interface — toggle syntax highlighting, line numbers, and word wrap
  • Typography Control — adjust the editor font size to your liking
  • Seamless Integration — supported files open just like standard Markdown files, or right-click any file to "Open as Text"

Screenshots

Code Editor View

Code Editor View 2

Settings

Settings View


Why Masking as MD?

Obsidian is excellent for Markdown, but occasionally you need to edit scripts, configuration files, or web documents without leaving your vault. Instead of relying on external editors, Masking as MD integrates a fully-fledged CodeMirror 6 editor directly into Obsidian.

Files are opened securely as plain text. No conversions to Markdown occur, and your files are never modified unless you manually edit and save them.


Supported Languages

The plugin provides built-in syntax highlighting for the following languages out of the box:

  • JavaScript / TypeScript (.js, .jsx, .ts, .tsx)
  • Python (.py)
  • HTML (.html, .htm)
  • CSS / SCSS / LESS (.css, .scss, .less)
  • JSON (.json)
  • Markdown (.md, .markdown - if forced to open with this plugin)

Configuration Reference

Navigate to Settings → Masking as MD to configure the plugin:

Setting Description
File Extensions Comma-separated list of extensions to handle (e.g. py, js, html, css, txt). Requires restart.
Syntax Highlighting Enable or disable CodeMirror syntax highlighting.
Line Numbers Display line numbers on the left side of the editor.
Word Wrap Wrap long lines of code to avoid horizontal scrolling.
Font Size Set your preferred editor font size using the slider.

Installation

Community Plugins (Recommended)

  1. Settings → Community Plugins
  2. Turn off Restricted Mode
  3. Browse → search Masking as MD
  4. Install → Enable

Or open directly: community.obsidian.md/plugins/masking-as-md

Manual

  1. Download main.js, manifest.json, styles.css from the latest release
  2. Create VaultFolder/.obsidian/plugins/masking-as-md/
  3. Copy the files into the folder
  4. Enable in Settings → Community Plugins

Contributing

  • Bug reports: Open an issue
  • Feature requests: Open an issue
  • Pull requests: Fork → Branch → Code → PR

If you find this plugin useful, consider giving it a star.


Development

If you wish to build the plugin from source:

  1. Clone this repository.
  2. Run npm install to install dependencies.
  3. Run npm run build to compile the plugin.
  4. Copy the output files to your Obsidian vault's plugin folder.

License

MIT — See LICENSE for details.


Developed by ahseyg

HealthExcellent
ReviewPassed
About
Open, view, and edit non‑Markdown files (py, js, html, css, json, txt and more) directly in your vault without converting them to Markdown. Use a CodeMirror 6 editor with syntax highlighting, optional line numbers, word wrap and adjustable font size; changes save only when you explicitly save.
CodeFilesSyntax
Details
Current version
1.0.2
Last updated
9 hours ago
Created
9 hours ago
Updates
3 releases
Downloads
10
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
ahseygahseyg
github.com/ahseyg
GitHubahseyg
  1. Community
  2. Plugins
  3. Code
  4. Masking as MD

Related plugins

Code Space

Professional code file management with visual dashboard, syntax highlighting editor, and Markdown embedding.

VSCode Editor

Edit Code Files like VSCode.

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.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

Mermaid Tools

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