How to mark text in gedit?

4k Views Asked by At

Can anyone guide me how to mark text in my source code in gedit as shown below ("TODO" word was marked with yellow color)?

enter image description here

I can't find a feature in the editor for me to apply this highlighting (so it persists) to other parts of text, beyond what is automatically highlighted. Is this possible?

I've uploaded my source (one small file) if you have gedit and want to view the highlighting to see what I'm trying to reproduce.

1

There are 1 best solutions below

3
On

I think that searching text with Ctrl+K will leave the text searched highlighted, otherwise you can look at the Smart Highlighting plugin for gedit .

If the highlight is not a consequence of a mark, it is clear that it rely on the synthax highlighter set for the current programming language ...

gedit provides syntax highlighting for a wide range of markup, programming, and scientific languages. If gedit recognizes the syntax being used when you open a file, it will automatically highlight the text. If your syntax or language is not highlighted upon startup, you can select the appropriate syntax or language by clicking View ▸ Highlight Mode, and then choosing the desired syntax. Alternately, you can select the syntax name from a list at the bottom of the gedit window.