User forums > General (but related to Code::Blocks)

[10.05] Yellow Bar? Non-existent spaces?

(1/2) > >>

UberNewb:
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?

Jenna:

--- Quote from: 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?



--- End quote ---
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.

UberNewb:

--- Quote ---The yellow bar indicates that there are changes, that have not yet been saved. It turns green after saving.

--- End quote ---
Well, this is not my favorite feature.


--- Quote ---If you don't like this feature, you can switch it off by unchecking "Settings -> Editor -> Margins and caret -> Left margin -> Use changebar".

--- End quote ---
Ahh, thank you.


--- Quote ---Are you sure there are no spaces or tabs ?
If yes, you found a bug in scintilla.

--- End quote ---
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?

oBFusCATed:
Use the "Quote" button to reply to posts...

Jenna:

--- Quote from: UberNewb on January 06, 2011, 09:03:53 am ---
--- Quote ---Are you sure there are no spaces or tabs ?
If yes, you found a bug in scintilla.

--- End quote ---
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.

--- End quote ---
No.
My error it's not a bug it's set by the cbEditor itself.
There are four different styles for indentaion guides:

--- Quote from: scintilla documentation ---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.

--- End quote ---
We use the last one (or the first if indentation guides are switched off).


--- Quote from: UberNewb on January 06, 2011, 09:03:53 am ---Edit :
How do you get the quoter's name into the quote tag?

--- End quote ---

[q*u*o*t*e  author=xxx ] as opening tag (without the stars).

Navigation

[0] Message Index

[#] Next page

Go to full version