I’m trying to create a plugin where i need do colorize/highlight a full line (not text).
For example if i do something like:
for region in self.view.sel():
if region.empty():
line = self.view.line(region)
self.view.add_regions('put-some-bg-color', [line], 'keyword', 'bookmark', sublime.DRAW_OUTLINED)
this will only put a outline on text until the newline char (\n).
I would like to put a backgroud color one the whole line, like it’s done by the “highlight_line” preference.
I found that this is not possible for the moment, on the sublimetext forum response, answered by site administrator for question.