![notepad++ word wrap shortcut notepad++ word wrap shortcut](http://gravewurde.fun/gzrj/09brxGhN-XFeHajz6bGkZwHaEL.jpg)
Notice Notepad doesn't properly re-wrap the long line.
![notepad++ word wrap shortcut notepad++ word wrap shortcut](https://www.shareus.com/img/office/microsoft-word-flie-is-corrupted-and-cannot-be-opened-how-to-fix-it/open-with-notepad.png)
Open Notepad, turn on the word wrap option and enter some text.A centered dot represents a space, a left arrow represents a CR, and a down arrow represents an LF. In the following example, normally invisible characters are shown in pink. If you start typing, you may end up creating stray CR or LF characters which appear as a box. But when a file is saved when word wrap is on, Notepad may end up repositioning the cursor in the middle of one of these sequences. When moving the cursor using the arrow keys or by clicking the mouse, Notepad treats CR LF and CR CR LF sequences as indivisible units. One way you can force the display to repaint is by switching to another window then switching back to Notepad. This is particularly confusing if the lines were re-wrapped. If you are re-saving an existing file, then Notepad doesn't repaint its window.
![notepad++ word wrap shortcut notepad++ word wrap shortcut](https://1.bp.blogspot.com/_ECeT2kJCN80/TKXe9rgvd_I/AAAAAAAAAZw/Ge374G-SPIA/s320/notepad1.jpg)
If you are saving a new Untitled window for the first time, or if you use the Save As command to save, then Notepad repaints its display window. If the removal and insertion of CR CR LF sequences aren't exactly the same, then the cursor will move. The number of characters from the beginning of the display window to the cursor position remains the same before and after the save each CR and LF character is counted as a separate character. After the file is saved, all the long lines in the display window are re-wrapped and new CR CR LF sequences are inserted at the wrap points.Īfter saving with word wrap on, the cursor may move. If word wrap is turned on when saving a file, any sequence of CR CR LF characters in the display window are removed before the file is saved. If word wrap is turned off when saving a file, all characters in the display window are saved. When turning off word wrap, any sequence of CR CR LF characters in the display window are removed. When turning on word wrap, Notepad wraps all long lines in the display window without inserting any new CR CR LF sequences. The long wrapped lines were saved unbroken.Īfter saving with word wrap on, the cursor may move, long lines may be re-wrapped, and Notepad may not repaint its window properly. The CR CR LF characters were not saved in the text file. The CR CR LF characters are only in Notepad's display window. NotesĪny place where the Enter key was pressed still has the normal CR LF characters.
NOTEPAD++ WORD WRAP SHORTCUT UPDATE
Update : If you are familiar with a hex editor, you can modify one bit in notepad.exe to prevent Notepad from inserting CR CR LF characters at wrap points. However, the cursor is repositioned at the beginning of the display window when you do this. You can remove the CR CR LF characters by turning off the word wrap feature, then turning it back on if desired. They also prevent Notepad from properly re-wrapping the lines if you resize the Notepad window. The CR CR LF characters can cause oddities if you copy and paste them into other programs. If you have the word wrap option turned on and the display window contains long lines that wrap around, then saving the file causes Notepad to insert the characters CR CR LF at each wrap point in the display window, but not in the saved file. The bug happens in the following situation:
NOTEPAD++ WORD WRAP SHORTCUT WINDOWS
There is a bug in the Windows XP version of Notepad that can cause extra CR characters to be stored in the display window. However when there are extra CR or LF characters on their own, this can sometimes cause problems. The operating system always interprets the character sequence CR LF the same way as the Enter key: it moves to the next line. When you press the Enter key on Windows computers, two characters are actually stored: a carriage return (CR) and a line feed (LF).