Reputation: 3487
In Eclipse Helios I want to highlight selected lines using a custom background color, like one would do with a text marker for normal text on paper.
How can I do that? Is there a (stable) Eclipse plugin?
Upvotes: 15
Views: 12926
Reputation: 10646
Yes, there is. Atleast as a workaround.
Mark a line as a bookmark; Right click on the line number field in the java editor, choose "Add bookmark" The go to preferences; General - Editors - Text Editors - Annotations. Choose bookmarks in the table, select "Text as highlighted"
Upvotes: 19
Reputation: 20003
If you want to make your own marker type and dictate what the text annotation should look like, read through http://www.eclipse.org/articles/Article-Mark%20My%20Words/mark-my-words.html . If you're looking to do this with your own file type, you'll have to go into more detail--and pick a file type that can support remembering such things itself.
Upvotes: 3