D
D
deleted-tnorman2015-05-26 12:23:56
Sublime Text
deleted-tnorman, 2015-05-26 12:23:56

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:
oEm4pjM.png
Thank you for your attention.
Correction.
For editing HTML, this feature is available
r9FNnES.png
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

1 answer(s)
A
Alexander Ruchkin, 2015-05-26
@VoidEx

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 question

Ask a Question

731 491 924 answers to any question