Home Download Buy Blog Forum Support

How to config it to highlight current indent guide?

How to config it to highlight current indent guide?

Postby jiyinyiyong on Wed Sep 19, 2012 5:53 am

When there are many lines of code indented, it's hard to distiguish which line belongs to which block,
I think it hard for me to discribe that clearly. Here's the example:
Code: Select all

html
  head
    title
  body
    div
        div
        | div
        |   div
        |     div
        F

When I put my caret at F, I want it to highliight the indent guide right abode `F`.
How to make it?
jiyinyiyong
 
Posts: 11
Joined: Sun Feb 19, 2012 4:34 am

Re: How to config it to highlight current indent guide?

Postby nick. on Wed Sep 19, 2012 1:01 pm

Sublime has three guides, which you can color as below:
Code: Select all
<key>guide</key>
<string>#FF0000</string>

<key>stackGuide</key>
<string>#00FF00</string>

<key>activeGuide</key>
<string>#0000FF</string>


I also have this in my User Preferences file:
Code: Select all
"indent_guide_options":
[
   "draw_normal",
   "draw_active"
],
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: How to config it to highlight current indent guide?

Postby jiyinyiyong on Wed Feb 27, 2013 12:27 pm

nick. wrote:Sublime has three guides, which you can color as below:
Code: Select all
<key>guide</key>
<string>#FF0000</string>

<key>stackGuide</key>
<string>#00FF00</string>

<key>activeGuide</key>
<string>#0000FF</string>


I also have this in my User Preferences file:
Code: Select all
"indent_guide_options":
[
   "draw_normal",
   "draw_active"
],



Thanks. With your configurations it looks much better now. Better colors.
If there's one guide line after `activeGuide`, that would be what I want most.
jiyinyiyong
 
Posts: 11
Joined: Sun Feb 19, 2012 4:34 am

Re: How to config it to highlight current indent guide?

Postby icylace on Wed Feb 27, 2013 7:00 pm

Perhaps you may also find my plugin CursorRuler to be of some interest:
viewtopic.php?f=5&t=11067
icylace
 
Posts: 47
Joined: Mon Jan 14, 2013 7:24 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 89 guests