Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jul on May 02, 2006, 04:43:38 pm

Title: what is that line?
Post by: jul on May 02, 2006, 04:43:38 pm
hi,

what is the vertical line across the editor? how can I get rid of it?

thanks

Jul
Title: Re: what is that line?
Post by: MortenMacFly on May 02, 2006, 04:58:04 pm
It shows you when a line is more than a fixed number of characters (usually 80) long. This is e.g. to ensure you can print a source-code without having line-breaks caused by the limitation of a max.-80-chars-per-column of your printer (in ASCii mode) or terminal.
To disable (change) it go to Settings->Editor->Gutter,margins and caret and change the "Gutter and margins mode" to "none.
With regards, Morten.
Title: Re: what is that line?
Post by: tiwag on May 02, 2006, 04:59:25 pm
what is the vertical line across the editor?
it's the Gutter line,
it shows you a specific column (which should not be exceeded while writing your code in order to have nicely layouted printouts)
The Gutter line column position, color and visibility can be adjusted from the Settings->Editor dialog

Quote
how can I get rid of it?
to switch it off, set
Settings->Editor->Gutter, margins and caret->Mode: = None


i guess such a terrible complex question can't be explored alone
by searching the available options in the settings dialogs,
therefore i'm pleased that i can give you the answer ...
Title: Re: what is that line?
Post by: MortenMacFly on May 02, 2006, 05:02:22 pm
I guess I've been a few seconds faster... ;-)
i guess such a terrible complex question can't be explored alone
by searching the available options in the settings dialogs,
therefore i'm pleased that i can give you the answer ...
:lol: :lol: :lol:
With regards, Morten.
Title: Re: what is that line?
Post by: Vampyre_Dark on May 02, 2006, 05:17:47 pm
Yeah, way to treat your users!  :lol: Those Dumbasses, how dare they not know what that vertical line was called!
Title: Re: what is that line?
Post by: tiwag on May 02, 2006, 05:26:38 pm
Yeah, way to treat your users!  :lol: Those Dumbasses, how dare they not know what that vertical line was called!
Those darn dumb-asses, which always need to have the last words ...  :D
Title: Re: what is that line?
Post by: Vampyre_Dark on May 02, 2006, 05:40:19 pm
Yeah, way to treat your users!  :lol: Those Dumbasses, how dare they not know what that vertical line was called!
Those darn dumb-asses, which always need to have the last words ...  :D
Oh come now now. Off the high horse. You act like you you don't have time to write a one word answer telling him 'gutter' but you have time to write that uneeded paragraph at the end telling him he's an idiot. How is hew supposed to find the option to turn it off when he didn't know it was called the gutter.

Maybe he could have looked in the help file.. oh wait..
Title: Re: what is that line?
Post by: thomas on May 02, 2006, 07:50:14 pm
Those Dumbasses, how dare they not know what that vertical line was called!
That's actually not surprising, since it is not the gutter at all. Gutter is an entirely different thing.

Anyway, that's how we call it in the prefereces :)
Title: Re: what is that line?
Post by: VReality on May 09, 2006, 03:08:31 am
Thank you Thomas.

I've never seen it called a 'gutter' anywhere else.  I believe the gutter is in the left margin where the break-point markers and the program pointer show up.  I've seen the line in question referred to as the 'right margin' elsewhere.

Not that CodeBlocks needs to be exactly the same as everyone else, but maybe the Editor Settings menu could be updated for clarity?
Title: Re: what is that line?
Post by: thomas on May 09, 2006, 09:09:37 am
Quote
I believe the gutter is in the left margin where the break-point markers and the program pointer show up.
That's right, this is how the word is generally used in text editors. Another meaning for gutter is the "inner" margin of a page in a book (i.e. the right margin on a left side and the left margin on a right side).

Scintilla calls that line "edge", I would call it "silly line at 80 characters", but neither of these is really a good naming :)
I am not even sure what it is good for, formatting for a fixed printer width? (the last time I printed out sources was around 1985, when thermal printers and 9 pin dotwriters were still considered state of the art, so I wouldn't know :)).

"Right margin" as you said might still be the best choice, even though "margin" suggests that it breaks lines going beyond (which is not the case).
Title: Re: what is that line?
Post by: mandrav on May 09, 2006, 09:19:38 am
"Right margin hint" might be better?
Title: Re: what is that line?
Post by: thomas on May 09, 2006, 10:55:58 am
Sounds good. Better than everything else, anyway :)