kisetsu51 downloadsCustomize colors for JVM annotations (@...) and comments (//, /* */, <!-- -->).
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.
@annotations (e.g. @Autowired, @Bean)// line comments and /* */ block comments<!-- ... --> in note body and html/xml fencesjava, kotlin, scala, groovy)```java
@Component
public class Demo {
// line comment
/* block comment */
@Bean
public String hello() {
return "hi";
}
}
```
<!-- section note -->
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 |
npm install
npm run build
<Vault>/.obsidian/plugins/java-annotation-highlight/
├── main.js
├── manifest.json
└── styles.css
npm install
npm run dev
MIT © 悸節