Does someone know a way, even a dirty hack to erase highlight and gutter mark of a region without knowing the key, as required by method erase_regions
? (We could all end up with a new really cool and useful plugin then! )
I need a way to clear a specific line of any associated region.
- The result should be a line without gutter marks or text highlighting.
- I do not possess the respective key, as it is set by SublimeLinter.
- And I also like to leave other region associated with that particular key unchanged.
The API doc does not suggest there is an inbuilt method to do this. A key as required by erase_regions
is always required and that method clears all regions without discrimination. (Also, see thread).
Background: I am currently hacking together a tiny plugin to change individual highlights from SublimeLinter.
This would be highly useful to make certain errors more discernable. Maybe give formatting warnings a color different from warnings regarding unused imports. (See SublimeLinter - Styiling individual errors possible?)
Indeed, I have already managed to highlight specific warnings/errors. Yet, the previous highlight by SublimeLinter is not overwritten. This looks ugly, as in the picture below!
Explanation: Yellow squiggly line by SublimeLinter, Orange solid line by my plugin.