Sublime Forum

Sections Highlight / Seperation

#1

Sometimes when I write code and reach an excess of let’s say 300 lines on one class it gets kind of confusing to check where I put some function and access its content and such.

So maybe a feature can be added where we can color each section using comments let’s say e.g.:

///////////////////////////////////////////////////////
code
//////////////////////////////////////////////////////
code
/////////////////////////////////////////////////////

And sublime uses the comments to color each section in a slightly different color (small difference but noticable) or custom colors.
That way when writing code one can find sections easily.

0 Likes

#2

Maybe you’re looking for https://packagecontrol.io/packages/ASCII%20Decorator?

You could also try using goto symbol (ctrl+r) more.

0 Likes

#3

No I do not mean banners, what I meant was coloring a section:

///////////////////////////////////
BLACK BACKGROUND
code BLACK BACKGROUND
BLACK BACKGROUND
///////////////////////////////////

///////////////////////////////////
WHITE BACKGROUND
code WHITE BACKGROUND
WHITE BACKGROUND
///////////////////////////////////

But instead of white and black a small subtle difference noticable to the eye that way I go down two sections and find the code I’m looking for.
Or make custom colors also an options that way all declarations have a background of color X, get/set methos have color Y, etc…

0 Likes

#4

I guess a plugin using View.add_regions could manage that, though I don’t know of any that does this.

0 Likes