user3001
user3001

Reputation: 3487

Highlighting lines in eclipse, like with a textmarker

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

Answers (2)

Fredrik
Fredrik

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"

Screenshot

Upvotes: 19

nitind
nitind

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

Related Questions