elfmedy296 downloadsHighlight important code and comments in your notes.
Mark the important parts of code in your Obsidian notes, so they are easier to revisit.

You can also type the markers yourself:
^^// Initialize before starting^^
if (^^status^^ == READY) {
^^Start()^^;
}
Selecting multiple lines highlights each nonblank line. To remove a highlight, delete its two ^^ markers, or undo immediately after adding it.
Code and comments use the same style. Backslashes stay unchanged: \^^fff^^ displays and copies as \fff. Highlights cannot span line breaks or nest; unmatched markers stay visible. Paired literal ^^ are treated as markers.
Both colors can be switched off independently. Restore defaults resets all settings.
Requires Obsidian 1.13+.
BRAT: add elfmedy/code-emphasis and enable Code Emphasis.
Manual: download main.js, manifest.json, and styles.css from the latest release. Put them in your vault's .obsidian/plugins/code-emphasis/ folder, then enable the plugin.
The highlight command currently works in ordinary top-level fenced code blocks. Special blocks such as Mermaid are excluded.
Upgrading from the old HTML plugin · Development · MIT license