Menu

Wrap text with correct tab when wrapping long word

TRG
2014-09-28
2014-10-11
  • TRG

    TRG - 2014-09-28

    Wrapping a single long word or string (like a lengthy URL) does not correctly honor indentation or tabs. A single long string always appears with the first character at the left of the page, ignoring the tab character at the beginning. If I type a space before a long, wrapped string, this incorrectly appears as a newline before the string (completely wrong behavior).

    Could Notepad++ simply produce the correct whitespace before long, wrapped single strings? A space or tab before such a wrapped string should appear as... well, a space or a tab, instead of being either ignored or becoming newlines.

     
  • Mike Cowperthwaite

    Preferences | Editing has a "line wrap" setting which addresses the "first character at the left of the page" problem. But when an unbroken string forces a wrap, it wraps immediately after the leading whitespace (even with a different line wrap setting). That's a Scintilla layout issue and the bug report needs to go to Scintilla.

     
  • Mike Cowperthwaite

    I opened a Scintilla bug for this.
    Neil Hodgson pointed out that Scintilla has a Wrap Mode parameter which can be set to "character" in which case it breaks at the window edge in all cases, ignoring whitespace.

    Notepad++ doesn't offer that mode in a preference; I don't know if it has a feature to set that from an INI file. I was able to set it using PythonScript.