Broken Formatting In Notepad

2

Often I have problems with formatting in Notepad on Windows XP Home. For example hidden space between characters or line breaks.

When I copy text with broken formatting to another place, it all becomes in its true form and messed up - unneeded line breaks for example. Also formatting also sometimes becomes cluttered which s confusing when working with HTML/PHP codes.

What's going on and how can I fix this?

Boris_yo

Posted 2011-05-19T21:26:04.060

Reputation: 5 238

1Can you show us some screenshots or examples of what you are trying, what the expected result is and what you see instead? – slhck – 2011-05-19T21:31:20.247

@slhck: I suspect this might have something to do with the other editor using UNIX LF line breaks, instead of Windows CR + LF. – paradroid – 2011-05-19T22:04:31.873

@paradroid: It might also be that @Boris_yo is copying from .PDF files, which also frequently add extra spaces etc. – Charles Lindsay – 2011-05-19T22:14:54.750

a)Some of what you've said sounds like you're opening a text with its own carriage returns, and you've got Word Wrap. b)Another thing, regarding what people have said about windows/unix CRLF/LF Try opening it in wordpad that can read unix style line endings. c)Other than that perhaps funny high range unicode characters could play a role. I'd bet on 'b' then 'a'. – barlop – 2011-05-19T22:19:37.367

did you find a solution? – oleschri – 2011-05-31T10:32:28.057

No i switched OS. – Boris_yo – 2011-08-26T06:38:13.587

Answers

3

Use Notepad++ (freeware) instead of Notepad.

Notepad++ will keep the correct line endings.

oleschri

Posted 2011-05-19T21:26:04.060

Reputation: 1 075

Not quite a solution though. – Boris_yo – 2011-08-26T06:38:38.343

Of course not if you changed your OS away from Windows ;) – oleschri – 2011-08-26T07:34:46.747