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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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.