Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any reason, why Notepad++ treats spaces as an average characters and thus pushes it to a new line, instead of "hiding" them at the end of line (when line-breaking mode is of course turned on)?


For over ten years, I've been using another editor, which editor engine is exactly (?) the same as in Notepad++ (Scintilla) and that editor was "hiding" extra spaces at the end of each line, causing each new line to start with a character and never with a spaces.

Notepad for Windows

Word, WordPad, Win Notepad and virtually every other text editor, that I know, does exactly the same. But since they all don't use Scintilla they're out of topic.

Only Notepad++ is a kind (an irritating) exception. I would say, that it is Scintilla's problem, if not for the fact, that for past ten years I've been using another Scintilla-based editor and it "hasn't got that problem".

Is there any way to turn off this... feature?

share|improve this question
It’s hard to tell from the limited examples you’ve provided, but this doesn’t look like it has anything to do with “pushing space characters to the beginning of the next line”, but of displaying lines right-justified instead of the default (in left-to-right languages) left-justified. – Scott Dec 3 '13 at 21:58
up vote 1 down vote accepted

This behavior depends on what setting in the "Language" menu is selected. I don't usually see this behavior in the language modes I use, such as "Normal text". I can observe this behavior with some language modes, such as "Caml". You can create your own mode, or modify the behavior of a supplied mode by selecting it and then adjusting the line wrap setting under Preferences.

share|improve this answer
You're partially right. It seems, that some languages has this "feature" and other doesn't. I can observe this in CSS, Markdown, Javascript, Pascal, Resource, Shell and SQL at my side. So it isn't that rare. But, as I wrote in comment to Ryan, Line Wrap setting in Settings > Preferences > Editing has nothing to do with this. I've switched it to Default and mentioned languages still displays spaces in the beginning. Do you know, which setting is responsible for that, and where to look for it? – trejder Dec 3 '13 at 22:13

I don't seem to have this issue myself with Notepad++.

It looks like you can modify the Line Wrap settings by going to Settings > Preferences > Editing. The section you are looking for is called Line Wrap. You can change the radio buttons and watch the word wrap change live based on the setting you choose.

I hope this helps.

share|improve this answer
Sorry, I was to fast to call-up glorious solution. Neither Line Wrap nor Folder Margin Style are responsible for this behavior. – trejder Dec 3 '13 at 22:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.