BG color for entire line

Display customization and font issues

BG color for entire line

Postby facemn » Wed Mar 22, 2006 8:58 pm

I like having my comments with a different background color, but the problem is, it only changes the BG color for where the text is and not the entire line. Is there anyway this can be done outside of adding a bunch of tabs to the line?

Thanks!
User avatar
facemn
Newbie
 
Posts: 2
Joined: Wed Sep 07, 2005 11:00 pm

Re: BG color for entire line

Postby Mofi » Thu Mar 23, 2006 7:48 am

No! Only the comment is highlighted as specified, not the preceding white-space characters before because they are not part of the comment.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: BG color for entire line

Postby scallanh » Thu Mar 23, 2006 6:49 pm

Mofi wrote:No! Only the comment is highlighted as specified, not the preceding white-space characters before because they are not part of the comment.


I believe facemn was referring to the fact that now in v12 the background color only extends to the right as far as the text on the line, rather than extending all the way to the edge of the window like it used to in v11.

For, example:
Code: Select all
// These are not a very
// useful
// comments at all.


In v12 if you set a background color for comments it will start at the "//" on each line, then stop immediately after the "y" in "very", the "l" in "useful", and the "." (period). The rest of the lines, from the end of the text to the edge of the window, will be the default background color. In v11 the background color would start at the "//" and then extend all the way to the right edge of the window.

I much preferred the way it was in v11. I use background colors a lot, mostly to highlight the various languages that can be in HTML files, and now rather than nice blocks of background color they are all ragged on the right edge since the background color only extends as far as the text on each line.
User avatar
scallanh
Basic User
Basic User
 
Posts: 31
Joined: Mon Oct 24, 2005 11:00 pm

Re: BG color for entire line

Postby Mofi » Fri Mar 24, 2006 7:33 am

Ah, I understand. This is really not an improvement. I never use different background colors, so I did not see this difference in highlighting comments. Please write to IDM support and ask why the developers have changed the method of background comment highlighting. Maybe it is just a mistake.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: BG color for entire line

Postby PaoloFCantoni » Fri Mar 24, 2006 8:40 am

I was intrigued and checked my 11.20b version and the change was already there...

It could be argued that certainly for line comments, the comment should stop at the end of the line (not the edge of the screen). However, for block comments the argument is not so straight forward.

I think, on the whole, I prefer the current mechanism. But, if it used to work differently before, it should have been conditionalised.

HTH,
Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: BG color for entire line

Postby facemn » Mon Mar 27, 2006 3:44 pm

scallanh - That's exactly right, I wanted the comment BG to extend all the way to the windows right edge, but it's now gone.

If they could at least give us the option in the next update, that'd be really nice.
User avatar
facemn
Newbie
 
Posts: 2
Joined: Wed Sep 07, 2005 11:00 pm


Return to Editor Display