Menu

#397 hidden line characters getting formatted

open
nobody
None
5
2012-09-26
2004-08-23
No

If you enable hidden line characters and the line is a
comment line and you chose to format it, the line
character is also formatted that way.

Discussion

  • Marek Januszewski

    Logged In: YES
    user_id=609236

    can you give an example? are you using the latest cvs version?

     
  • Oliver Stöneberg

    Logged In: YES
    user_id=591019

    just a line like

    // this is a comment

    should do it. Unfortunately I am still using the 4.9.8.10 on
    thsi system. Didn't get around to update it yet. I can check
    on my system with 4.9.9.0 later.

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    What I meant was - what do you mean by "chose to format it"?

     
  • Oliver Stöneberg

    Logged In: YES
    user_id=591019

    I meant the "Editor Options". I got my comments in cyan and
    the hidden line char is also in cyan.

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    IMHO that's the proper behaviour. New line char is a part of
    the commented out line - just like spaces and other
    characters....

     
  • Benoit Germain

    Benoit Germain - 2004-09-24

    Logged In: YES
    user_id=863258

    Hi,

    In version 4.9.9.0, when enabled, all invisible characters are
    formatted (ie, colored and styled) according to the previous
    token everywhere in the text, not just in comments. Only
    spaces/tabs at the beginning of a line, and carriage returns
    outside comments, are displayed with the desired color/style.

    I am not sure that displaying invisible chars in the same style
    as the surrounding text is a good idea, because it makes the
    code impossible to read. My (own personal egocentric) reason
    for displaying invisible characters is to detect mixed tabs/
    spaces in code indentation, so I use a very light color so as
    not to pollute the code itself. So, even in comments, I'd rather
    have my color used, because nothing looks more like a period
    than a visible whitespace :-)

    While I am at it with syntax highlighting bugs: the floating
    number "1.e-4" displays "1." as invalid characters, whereas "1.
    0e-4" makes the editor happy. Both compile fine though.

    Cheers,

    Benoit, brand new dev-cpp user.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.