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

Cmd Color

htlifehtlife18 downloads

Rainbow-colors each argument of shell commands in cmd/command code blocks, in both reading view and the editor.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Rainbow-colors each argument of a shell command in fenced code blocks, like VS Code's Rainbow CSV does for columns. Works in Reading view, Live Preview and Source mode (while you edit inside the block).

```cmd
ros2 bag record /tf_static /tf /odometry/filtered \
    --output ./bags/run1 --storage mcap
```

Both cmd and command are recognised as the block language.

Features

  • Each argument gets the next color in an 8-color cycle; the command name is bold, flags (-x, --x) are italic.
  • Quoted arguments stay together: --name="hello world" is one argument.
  • Lines ending with \ continue the same command, so colors keep counting.
  • # comment lines are dimmed.
  • Long commands wrap instead of scrolling; hover a block in Reading view for a Copy button.

Customizing colors

Add a CSS snippet that overrides the palette:

body {
  --rc-color-0: #ff5555;
  --rc-color-1: #ffb86c;
  /* ... up to --rc-color-7 */
}

Installation

Manual

Copy main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/cmd-color/, then enable Cmd Color in Settings → Community plugins.

BRAT

Add HTLife/obsidian-plugin-cmd-color in the BRAT plugin.

Releasing

Bump version in manifest.json and versions.json, commit, then push a tag with the same version (no v prefix), e.g. git tag 0.1.1 && git push origin 0.1.1. The GitHub Action creates a release with the plugin files attached.

License

MIT

HealthExcellent
ReviewPassed
About
Color each argument in cmd or command fenced code blocks with an 8-color cycle, bold the command name and italicize flags for clearer parsing. Apply formatting in Reading view, Live Preview, and Source mode; preserve quoted arguments, continue colors across backslash line continuations, dim comment lines, and reveal a hover Copy button.
CodeAppearanceCSS
Details
Current version
0.1.1
Last updated
5 days ago
Created
5 days ago
Updates
2 releases
Downloads
18
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
htlifehtlife
GitHubhtlife
  1. Community
  2. Plugins
  3. Code
  4. Cmd Color

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Custom Font Loader

Customize your vault with any font you want (+ Support for Android and iOS).

Lapel

Show the heading levels in the gutter of the editor.

Show Whitespace

CSS styles and CM6 extensions to highlight whitespace in Source and Live Preview modes.

Snippetor

Create and tweak common snippets.

Fontsource

Load custom fonts from Fontsource into your notes.

Focus Mode

Add a toggle to hide interface elements so you can focus on your note.

Animated Cursor

Simple yet smooth animated cursor.

Better Bullets

Improves readability of bulleted notes.

Agentage Galaxy

Visualize your vault as a 3D, rotating force-graph: notes are nodes, links are edges. Search, filter, and orbit your knowledge graph from the toolbar. Part of Agentage.