Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 735
user3001 Avatar asked Mar 29 '12 12:03

user3001


People also ask

How do I change the highlight in eclipse?

Open Preferences, and navigate to General->Editors->Text Editors->Annotations. Select Occurrences, and change the color to whatever you like..

Why is Eclipse highlighting my code?

This is activated because of code coverage. If you want to remove it then follow these steps. Go to "Windows -> Show View -> Coverage" Select it.


1 Answers

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

like image 53
Fredrik Avatar answered Sep 20 '22 05:09

Fredrik