Repository navigation
Releases: Tc-XoNoR/select-code-lines-highlighter
Release list
0.2.0 — Exact text highlights in yellow and red
Highlight exactly the selected text inside a code block, in yellow or red, with autonomous rendering in both Live Preview and Reading view.
New in 0.2.0
- Highlight code selection → Yellow / Red in the editor context menu, with matching highlighter icons.
- Persistent exact-text highlights stored locally in plugin data, leaving the entire Markdown note unchanged.
- Partial recoloring and removal, multiline and Unicode selections, and native Undo/Redo.
- Text anchoring after insertions before the target; ambiguous or changed targets are hidden rather than guessed.
- Exact text / Whole lines command mode in settings, with shared intensity. Existing
hl:highlights and original command IDs/hotkeys are preserved. - Separate red-text command, clearing commands, and a backed-up migration command for legacy local
ht:highlights. - Bounded processing, coalesced saves and safeguards for invalid storage.
Updating
Use Settings → Community plugins → Check for updates and update the plugin in place. Exact text is now the default; select Whole lines in plugin options for the original command behavior. Existing whole-line highlights remain visible.
Exact-text highlights are stored in .obsidian/plugins/select-code-lines-highlighter/data.json. Back up plugin data along with notes; copying Markdown into another note does not copy its highlights. Uninstalling as an update method can remove local highlights.
Validation and limits
Build, TypeScript, ESLint, all 108 Vitest tests, and whitespace checks passed. Desktop checks in Obsidian 1.13.7 verified both views, context-menu colors, partial recoloring/removal, settings intensity, Undo/Redo and reload persistence; the tested candidate was also used and approved by its author.
Mobile, other themes and long-duration application stress were not manually verified. See the README for storage limits and conservative anchoring behavior. The plugin is registered in the Obsidian Community catalog; its listing notes that it has not been manually reviewed by Obsidian staff.
Release assets: main.js, manifest.json, styles.css.
Select Code Lines Highlighter 0.1.1
Corrective initial release for Obsidian Community review.
- Highlights selected code-block lines without changing code content.
- Renders autonomously in Live Preview and Reading view.
- Adds configurable highlight color, intensity, accent color, and accent width.
- Provides commands and context-menu actions to add or remove highlights.
- Requires no other plugins or external CSS snippets.
This patch supersedes 0.1.0 and points the release tag to the fully verified implementation.
Select Code Lines Highlighter 0.1.0
Initial release
- Highlight complete logical lines selected inside supported fenced code blocks.
- Remove highlighting from selected lines.
- Use the command palette, native Obsidian hotkeys, or the conditional editor context menu.
- Render full-line highlights autonomously in the editor and Reading View.
- Configure highlight color, intensity, accent color, and accent width in the native plugin settings.
- Preserve code content while storing compact ranges in an autonomous
hl:metadata token. - Run locally without telemetry, network requests, external CSS, or another plugin.
Installation
Download main.js, manifest.json, and styles.css and place them in:
<your-vault>/.obsidian/plugins/select-code-lines-highlighter/
Reload Obsidian and enable Select Code Lines Highlighter under Settings → Community plugins.
Validation
pnpm run buildpnpm run lintpnpm test— 53 tests passed