Also export colored sublime regions (view.add_regions)
Opened this issue · 2 comments
I use https://github.com/seanliang/HighlightWords to highlight words (regions). It would be possible to export these highlights?
They are basically this:
view.add_regions('regionname', [locations], 'entity.name.class')
It would be possible to the get color for 'entity.name.class' in the current color scheme and add it to the html page?
There are endless special regions that are injected by various packages. I would get endless requests to support Package X highlights if I started down this road. If sublime created a generic way to expose such info, that may be different, but as things currently stand, I will probably not be adding such support.
If I could come up with a generic way users could specify regions to look for, it may be possible. I'm not sure how much effort this would require though. I'll at least look into it.