First of all, I absolutely adore Sublimetext2, and aside from Visual Studio (for C# ONLY), its pretty much the only edit I will use. One of my favorite features it the Bookmarking; I use it constantly. One thing I would like to be able to do, however, is highlight the background of lines which contain bookmarks. Much like the way the current caret line is highlighted (another feature I love), but using a color specifically for bookmarked lines. It would be great if these showed up in the minimap as well, but even if they didn't, this would still be great.

Now, why did I post this in Plugin Development rather than Ideas & Suggestions? Well, mainly because, as I am a developer, I don't mind putting in the work and making a plugin which does this myself (to be contributed back to the community, of course), but work and family demands mean I don't have time to chase down a rabbit hole only to find out that I would not be able to accomplish this via the plugin API. So how about it? Is this something that I could mod in, or is this something that would have to be implemented at the source level?

I don't think there's a callback for bookmarking, so you'd either have to poll the view to see if the bookmarks have changed or wrap the bookmark commands. I'd recommend the latter method.What I'd actually recommend, though, is this plugin:https://github.com/colinta/SublimeMarkAndMoveIt does its own bookmarking and adds some cool features on top. As a bonus, it also draws an outline around your bookmarks. I just changed all the bookmarking shortcuts to use Mark and Move instead of Sublime Text's default bookmarks.Changing the background color of an entire line (à la caret line highlighting) is unfortunately impossible with Sublime Text 2's API; you can only change the background color of characters themselves, and then only to colors that are in the current color scheme.

Changing the background color of an entire line (à la caret line highlighting) is unfortunately impossible with Sublime Text 2's API

Sections of my code have a different background colour (or effect) across the full width of the view. This appears for css and php blocks within HTML files. How is this created, or is it in-built to ST?

"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

It's built into your language grammar. If you want to modify the background color on the fly, you'd have to dynamically generate a language grammar to specifically target the section of code you're interested in. It can be done—I think there's a CSS color plugin that does it—but it's a *huge* hassle.

adzenith wrote:It's built into your language grammar. If you want to modify the background color on the fly, you'd have to dynamically generate a language grammar to specifically target the section of code you're interested in. It can be done—I think there's a CSS color plugin that does it—but it's a *huge* hassle.

Thank you. If it was straight-forward I was actually thinking of deleting it although the ability to at least change the background colour would have been interesting.