Highlighting lines in eclipse, like with a textmarker

前端 未结 2 982
太阳男子
太阳男子 2020-12-06 10:57

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 tha

相关标签:
2条回答
  • 2020-12-06 11:09

    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.

    0 讨论(0)
  • 2020-12-06 11:24

    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

    0 讨论(0)
提交回复
热议问题