How do I wrap lines in Notepad++ after N symbols?
I would like to have my lines in plain text in Notepad++ wrapped (soft wrapping for display, not insertion of line ends) after a reasonable amount of symbols (like 65 or 80). Is it possible?
The only option I came across is wrapping at window width, which gives ridiculous results provided one uses high resolution, non-gigantic fonts and maximized windows.
notepad++
add a comment |
I would like to have my lines in plain text in Notepad++ wrapped (soft wrapping for display, not insertion of line ends) after a reasonable amount of symbols (like 65 or 80). Is it possible?
The only option I came across is wrapping at window width, which gives ridiculous results provided one uses high resolution, non-gigantic fonts and maximized windows.
notepad++
4
Click View menu --> toggle Word wrap.
– Eric Leschinski
Nov 26 '14 at 15:40
3
He's looking for a way to wrap to a certain number of characters, not just at window width.View -> Word Wrap
only wraps to window width.
– keyofnight
Aug 3 '15 at 18:47
add a comment |
I would like to have my lines in plain text in Notepad++ wrapped (soft wrapping for display, not insertion of line ends) after a reasonable amount of symbols (like 65 or 80). Is it possible?
The only option I came across is wrapping at window width, which gives ridiculous results provided one uses high resolution, non-gigantic fonts and maximized windows.
notepad++
I would like to have my lines in plain text in Notepad++ wrapped (soft wrapping for display, not insertion of line ends) after a reasonable amount of symbols (like 65 or 80). Is it possible?
The only option I came across is wrapping at window width, which gives ridiculous results provided one uses high resolution, non-gigantic fonts and maximized windows.
notepad++
notepad++
edited Oct 16 '12 at 16:54
endolith
3,3031962106
3,3031962106
asked Dec 6 '11 at 15:47
xxzoidxxzoid
5172713
5172713
4
Click View menu --> toggle Word wrap.
– Eric Leschinski
Nov 26 '14 at 15:40
3
He's looking for a way to wrap to a certain number of characters, not just at window width.View -> Word Wrap
only wraps to window width.
– keyofnight
Aug 3 '15 at 18:47
add a comment |
4
Click View menu --> toggle Word wrap.
– Eric Leschinski
Nov 26 '14 at 15:40
3
He's looking for a way to wrap to a certain number of characters, not just at window width.View -> Word Wrap
only wraps to window width.
– keyofnight
Aug 3 '15 at 18:47
4
4
Click View menu --> toggle Word wrap.
– Eric Leschinski
Nov 26 '14 at 15:40
Click View menu --> toggle Word wrap.
– Eric Leschinski
Nov 26 '14 at 15:40
3
3
He's looking for a way to wrap to a certain number of characters, not just at window width.
View -> Word Wrap
only wraps to window width.– keyofnight
Aug 3 '15 at 18:47
He's looking for a way to wrap to a certain number of characters, not just at window width.
View -> Word Wrap
only wraps to window width.– keyofnight
Aug 3 '15 at 18:47
add a comment |
5 Answers
5
active
oldest
votes
According to this source you can somewhat mimic such behavior at least since Notepad++ 5.7
- Select “View” from menu bar.
- From the dropdown menu that appears click on “Word wrap” option.
either open another editor in other view and move the divider (or alternatively resize editor window) until text wraps at the desired number of characters
7
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
1
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
add a comment |
First Install the TextFX
plugin from the plugin menu. Note: it available only for 32-bit version of Notepad++.
You can split long lines with this menu command: TextFX -> TextFX Edit -> ReWrap Text to (Clipboard or 72) width
which means if you want to rewrap to something other than 72 characters you should type and copy that number (without any spaces) to clipboard and then use this option.
It works in my Notepad++ v6.9 and you have to select the lines you want to split.
add a comment |
This regex replace worked well enough for me:
Find what:
^(.{60,80})s
Replace with:
1n
Replace All
If some lines couldn't be split to between 60 and 80 characters, those lines will be left unmodified. Hopefully they will be few enough to deal with manually.
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
2
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
add a comment |
No, it is not possible is current versions of Notepad++. There is a feature request for it, but it has not been implemented yet.
As close as you can get (which isn't very):
- Create a vertical line at a specified number of columns
Preferences -> Editing -> Vertical Split
but N++ will not wrap to it. - A very gimmicky option is to split the display using
View -> Clone
but obviously does not really solve the issue. - Hard coding is possible with TextFX plugins, or using Ctrl + I shortcuts
For more details you can see the N++ wiki on manging line lengths.
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
add a comment |
There is a solution/workaround for this;
Sourceforge Notepad++ Forum - Enable/disable word wrap by language? Involving the use of NPPExec and a python script, adjusting a given language's word wrap property. Not ideal but it may work for you.
There is also a feature request on IdeaTorrent for this problem.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f365225%2fhow-do-i-wrap-lines-in-notepad-after-n-symbols%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
According to this source you can somewhat mimic such behavior at least since Notepad++ 5.7
- Select “View” from menu bar.
- From the dropdown menu that appears click on “Word wrap” option.
either open another editor in other view and move the divider (or alternatively resize editor window) until text wraps at the desired number of characters
7
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
1
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
add a comment |
According to this source you can somewhat mimic such behavior at least since Notepad++ 5.7
- Select “View” from menu bar.
- From the dropdown menu that appears click on “Word wrap” option.
either open another editor in other view and move the divider (or alternatively resize editor window) until text wraps at the desired number of characters
7
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
1
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
add a comment |
According to this source you can somewhat mimic such behavior at least since Notepad++ 5.7
- Select “View” from menu bar.
- From the dropdown menu that appears click on “Word wrap” option.
either open another editor in other view and move the divider (or alternatively resize editor window) until text wraps at the desired number of characters
According to this source you can somewhat mimic such behavior at least since Notepad++ 5.7
- Select “View” from menu bar.
- From the dropdown menu that appears click on “Word wrap” option.
either open another editor in other view and move the divider (or alternatively resize editor window) until text wraps at the desired number of characters
edited Jun 6 '18 at 8:21
answered Apr 18 '14 at 10:58
JörgJörg
54767
54767
7
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
1
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
add a comment |
7
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
1
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
7
7
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
That doesn't wrap text to a custom number of characters...
– Jerry
Apr 18 '14 at 13:01
1
1
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
@Jerry That's right, to mimic such behavior you have to open another editor in other view and move the divider until wrapping is to your liking.
– Jörg
Apr 22 '14 at 9:21
add a comment |
First Install the TextFX
plugin from the plugin menu. Note: it available only for 32-bit version of Notepad++.
You can split long lines with this menu command: TextFX -> TextFX Edit -> ReWrap Text to (Clipboard or 72) width
which means if you want to rewrap to something other than 72 characters you should type and copy that number (without any spaces) to clipboard and then use this option.
It works in my Notepad++ v6.9 and you have to select the lines you want to split.
add a comment |
First Install the TextFX
plugin from the plugin menu. Note: it available only for 32-bit version of Notepad++.
You can split long lines with this menu command: TextFX -> TextFX Edit -> ReWrap Text to (Clipboard or 72) width
which means if you want to rewrap to something other than 72 characters you should type and copy that number (without any spaces) to clipboard and then use this option.
It works in my Notepad++ v6.9 and you have to select the lines you want to split.
add a comment |
First Install the TextFX
plugin from the plugin menu. Note: it available only for 32-bit version of Notepad++.
You can split long lines with this menu command: TextFX -> TextFX Edit -> ReWrap Text to (Clipboard or 72) width
which means if you want to rewrap to something other than 72 characters you should type and copy that number (without any spaces) to clipboard and then use this option.
It works in my Notepad++ v6.9 and you have to select the lines you want to split.
First Install the TextFX
plugin from the plugin menu. Note: it available only for 32-bit version of Notepad++.
You can split long lines with this menu command: TextFX -> TextFX Edit -> ReWrap Text to (Clipboard or 72) width
which means if you want to rewrap to something other than 72 characters you should type and copy that number (without any spaces) to clipboard and then use this option.
It works in my Notepad++ v6.9 and you have to select the lines you want to split.
edited Jan 30 at 6:56
answered Sep 28 '14 at 15:22
VladislavVladislav
34125
34125
add a comment |
add a comment |
This regex replace worked well enough for me:
Find what:
^(.{60,80})s
Replace with:
1n
Replace All
If some lines couldn't be split to between 60 and 80 characters, those lines will be left unmodified. Hopefully they will be few enough to deal with manually.
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
2
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
add a comment |
This regex replace worked well enough for me:
Find what:
^(.{60,80})s
Replace with:
1n
Replace All
If some lines couldn't be split to between 60 and 80 characters, those lines will be left unmodified. Hopefully they will be few enough to deal with manually.
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
2
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
add a comment |
This regex replace worked well enough for me:
Find what:
^(.{60,80})s
Replace with:
1n
Replace All
If some lines couldn't be split to between 60 and 80 characters, those lines will be left unmodified. Hopefully they will be few enough to deal with manually.
This regex replace worked well enough for me:
Find what:
^(.{60,80})s
Replace with:
1n
Replace All
If some lines couldn't be split to between 60 and 80 characters, those lines will be left unmodified. Hopefully they will be few enough to deal with manually.
answered Mar 20 '17 at 20:41
BrilliandBrilliand
18314
18314
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
2
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
add a comment |
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
2
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
This works pretty well, although if you have very long tokens (e.g. urls) it won't work on those lines.
– Keith Tyler
Oct 16 '17 at 23:36
2
2
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
Obvious in retrospect, but make sure you don't have ". matches newline" checked. Otherwise existing line breaks are part of the 80 characters found, then you will have lines that end up shorter than intended.
– Stephen Klancher
Apr 15 '18 at 17:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
This is the best answer presented, IMHO. While answers involving adding plug-ins are helpful, they don;t describe how to do it with the software as provided. Some of us cannot install things. This solution does not "automatically" wrap at a specified column (equivalent to number of symbols, so long as we agree that white space is symbols), but it automates it enough for my purposes. Also, the comment by Stephen Klancher is of great value. Finally, I see that this question has not had an answer selected. I nominate this answer -- it solved my problem.
– Haakon Dahl
Jun 9 '18 at 6:50
add a comment |
No, it is not possible is current versions of Notepad++. There is a feature request for it, but it has not been implemented yet.
As close as you can get (which isn't very):
- Create a vertical line at a specified number of columns
Preferences -> Editing -> Vertical Split
but N++ will not wrap to it. - A very gimmicky option is to split the display using
View -> Clone
but obviously does not really solve the issue. - Hard coding is possible with TextFX plugins, or using Ctrl + I shortcuts
For more details you can see the N++ wiki on manging line lengths.
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
add a comment |
No, it is not possible is current versions of Notepad++. There is a feature request for it, but it has not been implemented yet.
As close as you can get (which isn't very):
- Create a vertical line at a specified number of columns
Preferences -> Editing -> Vertical Split
but N++ will not wrap to it. - A very gimmicky option is to split the display using
View -> Clone
but obviously does not really solve the issue. - Hard coding is possible with TextFX plugins, or using Ctrl + I shortcuts
For more details you can see the N++ wiki on manging line lengths.
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
add a comment |
No, it is not possible is current versions of Notepad++. There is a feature request for it, but it has not been implemented yet.
As close as you can get (which isn't very):
- Create a vertical line at a specified number of columns
Preferences -> Editing -> Vertical Split
but N++ will not wrap to it. - A very gimmicky option is to split the display using
View -> Clone
but obviously does not really solve the issue. - Hard coding is possible with TextFX plugins, or using Ctrl + I shortcuts
For more details you can see the N++ wiki on manging line lengths.
No, it is not possible is current versions of Notepad++. There is a feature request for it, but it has not been implemented yet.
As close as you can get (which isn't very):
- Create a vertical line at a specified number of columns
Preferences -> Editing -> Vertical Split
but N++ will not wrap to it. - A very gimmicky option is to split the display using
View -> Clone
but obviously does not really solve the issue. - Hard coding is possible with TextFX plugins, or using Ctrl + I shortcuts
For more details you can see the N++ wiki on manging line lengths.
edited Aug 31 '15 at 22:36
Arjan
27k1065107
27k1065107
answered Jun 30 '13 at 7:30
peanut_butterpeanut_butter
1,7121116
1,7121116
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
add a comment |
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
It is possible with plugins check superuser.com/a/817874/487118
– TechJS
Jul 26 '17 at 11:32
add a comment |
There is a solution/workaround for this;
Sourceforge Notepad++ Forum - Enable/disable word wrap by language? Involving the use of NPPExec and a python script, adjusting a given language's word wrap property. Not ideal but it may work for you.
There is also a feature request on IdeaTorrent for this problem.
add a comment |
There is a solution/workaround for this;
Sourceforge Notepad++ Forum - Enable/disable word wrap by language? Involving the use of NPPExec and a python script, adjusting a given language's word wrap property. Not ideal but it may work for you.
There is also a feature request on IdeaTorrent for this problem.
add a comment |
There is a solution/workaround for this;
Sourceforge Notepad++ Forum - Enable/disable word wrap by language? Involving the use of NPPExec and a python script, adjusting a given language's word wrap property. Not ideal but it may work for you.
There is also a feature request on IdeaTorrent for this problem.
There is a solution/workaround for this;
Sourceforge Notepad++ Forum - Enable/disable word wrap by language? Involving the use of NPPExec and a python script, adjusting a given language's word wrap property. Not ideal but it may work for you.
There is also a feature request on IdeaTorrent for this problem.
answered Feb 15 '13 at 8:38
woneawonea
1,48211940
1,48211940
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f365225%2fhow-do-i-wrap-lines-in-notepad-after-n-symbols%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
Click View menu --> toggle Word wrap.
– Eric Leschinski
Nov 26 '14 at 15:40
3
He's looking for a way to wrap to a certain number of characters, not just at window width.
View -> Word Wrap
only wraps to window width.– keyofnight
Aug 3 '15 at 18:47