Page 1 of 1

Unaligned tab spacing

Posted: Sat Apr 17, 2004 8:35 am
by Amiga5k
I know this is nit-picking, but it gets a little annoying after a while:

Ever notice that if you put comments after code on a line (as opposed to putting comments on their own line above or below), they don't line up exactly with each other, even if a FIXED space character set is used?

That is, if you have this:

Code: Select all

If b = a    ; Check 'b'
   c = d    ; Change 'c'
EndIf
The 'Check 'b'' line and the 'Change 'c'' line don't line up because the 'If' keyword gets bolded and therefore makes that line a few pixels longer, causing the tab spacing to misalign. (In the example above, they DO align because the 'If' is not in bold - But trust me, in the PBIDE, they don't align exactly. The longer the bolded keyword, the worse they align...)

Maybe the tab spacing could be based on the width of the bold character, rather than the unbolded one? Nah, that's the klunky solution. Maybe there could be a way to have Syntax Highlighting, but without bolding certain characters?

Unchecking the "Coloring" checkbox in the IDE prefs stopped the bolding problem, but it also turned off the other stuff.

Fred, could you put in a switch to enable\disable bolding?

Thanks!
Russell

Posted: Sat Apr 17, 2004 4:38 pm
by blueznl
using fixedsys as a font, no such problem under japbe

Posted: Tue Apr 20, 2004 2:06 am
by Amiga5k
Don't know what "japbe" is, but in the PB IDE, even using fixedsys, the problem is there because of the bolding of some words. I was just wishing that the bolding feature by itself could be turned off.

Thanks anyways, though!

Russell

Posted: Tue Apr 20, 2004 5:18 pm
by GPI
Amiga5k wrote:Don't know what "japbe" is, but in the PB IDE
I think, you know it already: The link is in my sig.

GPI

Posted: Tue Apr 20, 2004 7:26 pm
by Amiga5k
Yep, I d\l'd jaPBe, and it's great! Even with FixedSys used the tabs don't align by default. They do if you deselect bold. Perfect solution.

Thanks!
Russell

Posted: Tue Apr 20, 2004 9:19 pm
by Pupil
Use the font 'Courier New' and everything should be aligned perfectly even when bold is used...

Posted: Wed Apr 21, 2004 8:45 am
by Amiga5k
Hmm...Right you are. Strange, because Courier New is not a fixed width font AFAIK. I must have had it on the 'old' Courier before...

Thanks!
Russell