Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: UberNewb on January 06, 2011, 08:27:42 am
-
See the attached png image to see what I am talking about.
First, what does the yellow bar on the left hand side of the code editor mean?
Second, why does line 52 show vertical indentation lines when there are no spaces or tabs on that line?
-
See the attached png image to see what I am talking about.
First, what does the yellow bar on the left hand side of the code editor mean?
Second, why does line 52 show vertical indentation lines when there are no spaces or tabs on that line?
The yellow bar indicates that there are changes, that have not yet been saved. It turns green after saving.
By the way you can jump to the next changed place with Ctrl+F3 or the previous one with Ctrl+Shift+F3 or via "Search" menu
If you don't like this feature, you can switch it off by unchecking "Settings -> Editor -> Margins and caret -> Left margin -> Use changebar".
Are you sure there are no spaces or tabs ?
If yes, you found a bug in scintilla.
-
The yellow bar indicates that there are changes, that have not yet been saved. It turns green after saving.
Well, this is not my favorite feature.
If you don't like this feature, you can switch it off by unchecking "Settings -> Editor -> Margins and caret -> Left margin -> Use changebar".
Ahh, thank you.
Are you sure there are no spaces or tabs ?
If yes, you found a bug in scintilla.
Yes, I'm sure. You can see the same thing in this next attachment. There are only endlines on the lines with the indentation guide and they stop as soon as you type a new character.
It looks like anytime you have a blank line(s) after an indented line then it shows the vertical indentation guides. I don't recall this ever happening with 8.02 though.
Would you like me to submit this bug to BerliOS? I just registered an account with BerliOS so it's no problem.
Edit :
How do you get the quoter's name into the quote tag?
-
Use the "Quote" button to reply to posts...
-
Are you sure there are no spaces or tabs ?
If yes, you found a bug in scintilla.
Yes, I'm sure. You can see the same thing in this next attachment. There are only endlines on the lines with the indentation guide and they stop as soon as you type a new character.
It looks like anytime you have a blank line(s) after an indented line then it shows the vertical indentation guides. I don't recall this ever happening with 8.02 though.
Would you like me to submit this bug to BerliOS? I just registered an account with BerliOS so it's no problem.
No.
My error it's not a bug it's set by the cbEditor itself.
There are four different styles for indentaion guides:
There are 4 indentation guide views. SC_IV_NONE turns the feature off but the other 3 states determine how far the guides appear on empty lines.
SC_IV_NONE No indentation guides are shown.
SC_IV_REAL Indentation guides are shown inside real indentation white space.
SC_IV_LOOKFORWARD Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line. If the previous non-empty line was a fold header then indentation guides are shown for one more level of indent than that line. This setting is good for Python.
SC_IV_LOOKBOTH Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line or previous non-empty line whichever is the greater. This setting is good for most languages.
We use the last one (or the first if indentation guides are switched off).
Edit :
How do you get the quoter's name into the quote tag?
[q*u*o*t*e author=xxx ] as opening tag (without the stars).
-
Use the "Quote" button to reply to posts...
Oh, so you can use author, link, and date inside the quote tag. Okay then.
My error it's not a bug it's set by the cbEditor itself.
There are four different styles for indentaion guides:
I don't suppose there's any way I can hack SC_IV_REAL into my install is there?
It doesn't really matter though as I don't use empty lines after indented ones anyway.
[q*u*o*t*e author=xxx ] as opening tag (without the stars).
Okay, thanks.