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

Java Annotation Highlight

kisetsukisetsu51 downloads

Customize colors for JVM annotations (@...) and comments (//, /* */, <!-- -->).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Customize colors for JVM-style annotations (@Override) and comments (//, /* */, <!-- -->) in Obsidian code blocks and notes.

This plugin does not collect telemetry, show ads, or make network requests. All highlighting runs locally.

Features

  • Custom colors for @annotations (e.g. @Autowired, @Bean)
  • Custom colors for // line comments and /* */ block comments
  • Optional HTML comments: <!-- ... --> in note body and html/xml fences
  • Works in Reading view and Editing (source / live preview)
  • Configurable languages (default: java, kotlin, scala, groovy)
  • Independent toggles for reading view vs editing view

Demo

```java
@Component
public class Demo {
    // line comment
    /* block comment */
    @Bean
    public String hello() {
        return "hi";
    }
}
```
<!-- section note -->

Settings

Open Settings → Java Annotation Highlight:

Setting Description
Reading view Apply colors to rendered / preview code blocks
Editing view Apply colors while editing fences / markdown
Languages Comma-separated fence languages (kt → kotlin)
Annotation color Color for @Name
Comment color Color for // and /* */
HTML comments Color <!-- --> using the comment color

Install

From Community Plugins (after approval)

  1. Settings → Community plugins → Browse
  2. Search Java Annotation Highlight
  3. Install and enable

Manual install

  1. Build:
    npm install
    npm run build
    
  2. Copy into your vault:
    <Vault>/.obsidian/plugins/java-annotation-highlight/
      ├── main.js
      ├── manifest.json
      └── styles.css
    
  3. Enable the plugin in Community plugins.

Development

npm install
npm run dev

Compatibility

  • Requires Obsidian 1.13.0+ (declarative settings API).
  • No telemetry, ads, or network access.

License

MIT © 悸節

HealthExcellent
ReviewPassed
About
Customize colors for JVM-style annotations and comments in code blocks and notes. Apply distinct colors to @annotations, // and /* */ comments and optional HTML <!-- --> comments in both reading and editing views, with configurable languages and separate toggles.
SyntaxAppearance
Details
Current version
1.2.4
Last updated
3 weeks ago
Created
3 weeks ago
Updates
2 releases
Downloads
51
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
kisetsukisetsu
GitHubmutiaaaaaaa
  1. Community
  2. Plugins
  3. Syntax
  4. Java Annotation Highlight

Related plugins

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

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

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Note Toolbar

Add customizable toolbars to your notes.

Link Favicons

See the favicon for a linked website.

Colored Tags

Colorize tags in different colors to visually distinguish them from each other.

Chat View

Chat View lets you quickly and easily create elegant Chat UIs in your Markdown Files.

Custom Font Loader

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

Pretty Properties

Makes note properties look more fun: adds side image, banners, list property colors and allows to hide specific properties.