I found out how to change the color of the todo tag in eclipse (window->preferences->general->editors->text editors->annotations->tasks) but this changes it so that when I write //TODO the entire line is affected. Is it possible so make it so that ONLY the word TODO is afected?
Change color of Eclipse todo only - not whole comment
Asked Answered
Is it possible so make it so that ONLY the word TODO is afected?
Yes, you can change the color of "task tag" comments under Preferences → Java → Editor → Syntax Coloring ⇉ Comments → Task Tags, as shown in the screenshot below. Note that "TASK" in the preview window is hot pink. "TODO" is a task tag, so it also appears hot pink for me.
I was hoping to have the task tag have a highlighted background like I have it on VIM :/ Do you know if you can do that? –
Sarnoff
@DGrin91 I don't think it can be done with the built-in preferences ("you could always write a plugin to do it..."). The "task tag" is colored like normal syntax, and normal syntax doesn't have a highlight feature. The "task" that contains the tag is treated like an annotation, which can be highlighted. The distinction seems artificial considering it's all comment text, but that seems to be how it's split up. –
Georg
Thats what I thought. This is still good though, thanks a lot. –
Sarnoff
© 2022 - 2024 — McMap. All rights reserved.