Answer the question
In order to leave comments, you need to log in
Is it possible to highlight a line in Sublimetext 3?
I am looking for a way by which it would be possible to leave bright marks that would allow you to quickly find the desired lines on the minimap.
Please let me know if there is such a thing.
Picture example:
Thank you for your attention.
Correction.
For editing HTML, this feature is available
Interested in the same, but only for the syntax of other languages. For example, javascript.
Answer the question
In order to leave comments, you need to log in
As rightly noted, in order to be on the minimap, it must be visible in the editor itself.
I see two options:
1. Correct the corresponding tmLanguage by adding a rule for such a special comment and setting it to the desired contrast color
2. Write (or search for) a plugin that would do the same without editing the language syntax description: it would find the necessary comments and hang they are regions (API function add_regions). Once hung, such a region itself shifts to the right place when editing and highlights the same area. So you can do it more flexibly: use the keyboard shortcut to insert such a comment and immediately highlight it, then you won’t have to parse anything at all.
If you do not find such a plugin and want to implement it, write to us, we will cooperate.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question