Author Topic: Can't get tabs or syntax indent rulers to work  (Read 524 times)

jorick

  • Community Member
  • Posts: 107
  • Hero Points: 1
Can't get tabs or syntax indent rulers to work
« on: August 17, 2012, 05:35:24 PM »
I have tabs for C files set to every 3 spaces but when I enable the tabs ruler, it shows a tick mark at column 4 but then ticks every 12 character positions after that with no minor ticks every 3.  How do I get it to display the minor tick marks every 3 characters like in version 17.0.1?

SlickEdit 2012 (v17.0.2.0 64-bit)

Serial number: ********
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\17\slickedit.lic

Build Date: August 09, 2012
Emulation: CodeWright

OS: Windows 7 x64
OS Version: 6.01.7601  Service Pack 1
Memory: 34% Load, 5675MB/16264MB Physical, 6512MB/32528MB Page File, 626MB/8388607MB Virtual
Shell Info: C:\Windows\system32\cmd.exe /q
Screen Size: 1680 x 1050, 1680 x 1050, 1680 x 1050, 1680 x 1050

Project Type: Cpp
Language: .c (C/C++)

Installation Directory: C:\Program Files\SlickEdit\ (non-removable drive,NTFS,365284MB free)
Configuration Directory: C:\Users\rbennet\Documents\My SlickEdit Config\17.0.2\ (non-removable drive,NTFS,365284MB free)

jimlangrunner

  • Community Member
  • Posts: 266
  • Hero Points: 21
Re: Can't get tabs or syntax indent rulers to work
« Reply #1 on: August 17, 2012, 08:14:09 PM »
Did you try the "Syntax Indent Ruler" option under "Current Line highlight"?  That's what I have going on right now, and it seems to work correctly.  Changing indent count even changes the indent ruler ticks.
Jim Lang
Student

jorick

  • Community Member
  • Posts: 107
  • Hero Points: 1
Re: Can't get tabs or syntax indent rulers to work
« Reply #2 on: August 18, 2012, 04:38:06 PM »
Yes, I tried it.  It shows the same thing, ticks every 12 characters.

Dennis

  • SlickEdit Team Member
  • Community Member
  • *
  • Posts: 1202
  • Hero Points: 136
Re: Can't get tabs or syntax indent rulers to work
« Reply #3 on: August 20, 2012, 03:22:58 PM »
The syntax indent ruler depends on your settings for syntax indent (Tools > Beautify > Options... > Edit > Indent > General > Syntax Indent.

If you want the ruler to draw strictly based on your tabs, I would use the "Tabs ruler".

Also, to verify that it is not a drawing problem on your particular machine, try switching to the Decimal ruler to verify that all the ticks are drawn.  If you only see ticks drawn every tenth column, try a larger font size.

I did adjust the size of the ticks in 17.0.2, because the old ticks were a bit too intrusive.  In my testing, the new ones were visible on all platforms.

jorick

  • Community Member
  • Posts: 107
  • Hero Points: 1
Re: Can't get tabs or syntax indent rulers to work
« Reply #4 on: August 20, 2012, 04:24:24 PM »
The syntax indent is set to 3.

It appears to be the font size.  I'm using DejaVu Sans Mono 7 which is a rather small font.  Using font sizes of 8 and 9 cause the ticks to appear every 6 characters.  Setting the size to 10 allows the tick marks to be displayed correctly.  But a font size of 10 is very large and unwieldy.

DejaVu Sans Mono 7 is the same width and one pixel taller than Lucida Console 7.  I switched to Lucida Console 7 and now the middle small tick mark is missing (large, small, blank, small, large...).  A font size of 8 goes every 12 characters.  A font size of 9 and 10 goes every 6 characters.  Only when I reach a font size of 12 do all ticks display.

I just noticed that the tick marks are also being extended into the line number area, which could explain why the first tick mark at column 4 is a large one.

Seems to me that ticks are somewhat hosed unless you're willing to use a very large font size.  Any way to go back to the original tick marks but use a lighter shade of gray to make them less intrusive?

Dennis

  • SlickEdit Team Member
  • Community Member
  • *
  • Posts: 1202
  • Hero Points: 136
Re: Can't get tabs or syntax indent rulers to work
« Reply #5 on: August 20, 2012, 07:20:19 PM »
For the next release, I'll just put in some logic to draw the tick marks a minimum size for those rare cases where people use fonts that are that small.  That may be just a single pixel.