[quote=“rooc”]Hi, thank you for your nice package! One question - is there a way to change color for highlight border? with option “underline” and “outline” color applies to border and it’s fine but type “solid” doesn’t give a way to define border color
grab.by/bVsO[/quote]
Unfortunately no. The api doesn’t even allow me to directly set the color of the region; I instead specify a scope, and that scope must be defined in the color scheme file. This is the description from the Sublime Text 2 API (this is the command I use to create the colored regions).
[code]add_regions(key, [regions], scope, , ) None
Add a set of regions to the view. If a set of regions already exists with the given key, they will be overwritten. The scope is used to source a color to draw the regions in, it should be the name of a scope, such as “comment” or “string”. If the scope is empty, the regions won’t be drawn.
The optional icon name, if given, will draw the named icons in the gutter next to each region. The icon will be tinted using the color associated with the scope. Valid icon names are dot, circle, bookmark and cross.
The optional flags parameter is a bitwise combination of:
sublime.DRAW_EMPTY. Draw empty regions with a vertical bar. By default, they aren’t drawn at all.
sublime.HIDE_ON_MINIMAP. Don’t show the regions on the minimap.
sublime.DRAW_EMPTY_AS_OVERWRITE. Draw empty regions with a horizontal bar instead of a vertical one.
sublime.DRAW_OUTLINED. Draw regions as an outline, rather than filled in.
sublime.PERSISTENT. Save the regions in the session.
sublime.HIDDEN. Don’t draw the regions.[/code]