News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

what is that line?

Started by jul, May 02, 2006, 04:43:38 PM

Previous topic - Next topic

jul

hi,

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

thanks

Jul

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

tiwag

Quote from: jul on May 02, 2006, 04:43:38 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 ...

MortenMacFly

I guess I've been a few seconds faster... ;-)
Quote from: tiwag on May 02, 2006, 04:59:25 PM
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Vampyre_Dark

Yeah, way to treat your users!  :lol: Those Dumbasses, how dare they not know what that vertical line was called!
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

tiwag

Quote from: 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!
Those darn dumb-asses, which always need to have the last words ...  :D

Vampyre_Dark

Quote from: tiwag on May 02, 2006, 05:26:38 PM
Quote from: 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!
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..
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

thomas

Quote from: Vampyre_Dark on May 02, 2006, 05:17:47 PMThose 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 :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

VReality

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?

thomas

QuoteI 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).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mandrav

"Right margin hint" might be better?
Be patient!
This bug will be fixed soon...

thomas

Sounds good. Better than everything else, anyway :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."