Menu

Show End Space (Feature Req)

Mesmeric
2009-07-22
2012-11-13
  • Mesmeric

    Mesmeric - 2009-07-22

    Suggest an option that forces whitespace to be visible when you can't guess it is there. Basically this means trailing whitespaces rather than space within the line. By trailing white space, this is to include space leading up to a screen linebreak caused by wordwrap onto the next line, as well as any whitespace at the real end of a line.
    There are several ways to do this.
    All whitespace at the real end of a line can be shown with dots/tabs.
    Whitespace at the end of a wordwrap-line could either be placed at the start of the next line (so you can see it's there, because of the indent this causes), or otherwise it can be shown as dots, using the following method:
    if it's a single space between items broken onto different lines by wordwrap that, without that space, would have not broken onto separate lines, then you don't need to highlight it as you can see it's there by the word wrap position;
    however, if it's multiple whitespace, or a space even without which the line would have broken by wordwrap (such as a = b), then show it because you can't guess it's there visually.
    e.g. (with the | indicating a new line caused by wordwrap:)
    Some text |new line  - needn't show the space before the | linebreak because the wordwrap makes it obvious it's there
    Some text  |new line - needs to show the two spaces before the | linebreak
    a |=b   - show the space before the | linebreak
    Of course if it's a pain to code such fine detail, just showing end-of-screen-line spaces would suffice.

    Many thanks for a great program!

    david

     
    • cchris

      cchris - 2009-07-23

      View -> Show Symbol -> Show White Space and TAB . Deosn't this do the job?

      CChris

       
MongoDB Logo MongoDB