Sublime Forum

Highlighted indents in Sublime Text 3 like Notepad++?

#1

I just discovered Sublime 3 and it truly is sublime (so much so that I
will pay for it). So I am making the transition from notepad++… the
issue I have at the moment is that Notepad++ has these fantastic indent
highlights which are crucial for me to see where my parent elements are.

Here is the difference…

Regrettably Sublime does not highlight the indent on the currently
selected indentation level… I can’t believe this does not come default
with the editor?

So my question is how do I enable the selected indent level to show up as say green.

Best,

Jethro

3 Likes

#2

BracketHighlighter does kind of that job with following plugin settings.

    // Experimental: Creates a visible bar at the beginning of all lines between
    // multiline bracket spans.
    "content_highlight_bar": true,
    // Experimental: Align the content highlight bar at the bracket indent level
    "align_content_highlight_bar": true,

But I still think that Notepad++ has better (more clear) indent guide and code folding.

1 Like

#3

##Colors for active indent guide option

 

2 Likes

#4
1 Like

#5

I agree, the highlight could be better. I often find hard to see in html where the beginning/end tag pair is. I hope ST3 will get something like this.

1 Like

#6

 

You can get pretty good visibility in ST with the right settings:

 



 

Here are my visibility related settings:

##@ Preferences.sublime-settings

	"always_show_minimap_viewport": true,
	"caret_extra_bottom": 3,
	"caret_extra_top": 3,
	"caret_extra_width": 1,
	"caret_style": "phase",
	"draw_minimap_border": true,
	"fade_fold_buttons": false,
	"fold_buttons": true,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"line_numbers": true,
	"match_brackets": true,
	"match_brackets_angle": true,
	"match_brackets_braces": true,
	"match_brackets_content": true,
	"match_brackets_square": true,
	"match_selection": true,
	"match_tags": true,
	"overlay_scroll_bars": "enabled",

 

##@ YourColorScheme.tmTheme

			<!-- Indent Guides -->

				<key>guide</key>
				<string>#14191F</string>

				<key>stackGuide</key>
				<string>#14191F</string>

				<key>activeGuide</key>
				<string>#2E4589</string>

			<!-- Highlighted Brackets -->

				<key>bracketsForeground</key>
				<string>#D80E64</string>

				<key>bracketsOptions</key>
				<string>foreground</string>

				<key>bracketContentsForeground</key>
				<string>#D80E64</string>

				<key>bracketContentsOptions</key>
				<string>underline</string>

			<!-- Document Selection -->

				<key>caret</key>
				<string>#D80E64</string>

				<key>lineHighlight</key>
				<string>#121522</string>

				<key>selection</key>
				<string>#1D416B</string>

				<key>selectionForeground</key>
				<string>#bbccff</string>

				<key>selectionBorder</key>
				<string>#4D71FF</string>

				<key>inactiveSelection</key>
				<string>#1D416B</string>

				<key>inactiveSelectionForeground</key>
				<string>#bbccff</string>

			<!-- Search Results -->
			
				<key>findHighlight</key>
				<string>#0BD0AC</string>

				<key>findHighlightForeground</key>
				<string>#000000</string>

 
The only thing I can’t remember right now is the viewport fill…

 

If you need anything more than that, BracketHighlighter is the way to go.
 

###Edit:

I found a great post with the mini-map viewport settings I had forgotten about.

1 Like

Scroll bar slider is hard to see
Find all occurences of the selected word
inverse_caret_state foreground colour
#7

The settings allow for a pretty good amount of customization, overall.

I just wish that quotes were included in the [ brackets | bracketContent ] scopes.

Does anyone know if that is possible?
( without a plugin )

1 Like

#8

@fico, what is your theme/colorscheme ? It looks awesome! :slightly_smiling:

3 Likes

#9

Thanks!   :grin:   It’s a custom theme + colorscheme I’ve been working on.

I’ll be releasing it on PackageControl in the near future, gotta clean up the code a bit.   I’m working on a few ST projects in parallel, and the theme release is in my backlog for now.

Def will be posting a thread @ Plugin Announcements when it’s ready.

2 Likes