- AuthorPosts
- March 12, 2007 at 10:59 pm #4233tungwaiyipMember
Do EmEditor has a paragraph mode, such that when user enter long line of text pass the right margin it will automatically insert line break and start from the new line?
The ‘View wrapped by character’ mode works fine for me. However there are other people whose editor do not do soft wrapping. So they requested the text files to have hard breaks within paragraph for readability. That’s why I am asking about this feature.
Thanks!
March 12, 2007 at 11:13 pm #4234Yutaka EmuraKeymasterThere is no automatic way to do this, but you can do that manually after writing a paragraph. After selecting text, you can click right mouse button, select Convert Selection, and then Split Lines.
September 11, 2008 at 6:39 am #6200gningParticipantHow does that work? It seems like the Split Lines command is always grayed out. The ability to quickly reflow a paragraph is the one thing I find myself missing from the old text editor I want to replace, UltraEdit.
September 11, 2008 at 9:36 am #6202gningParticipantHah, never mind, I figured it out… and congratulations on having a macro system that allowed me, in the first evening using it, to whomp up a perfectly good “reflow all paragraphs in selection” macro:
var stateNoWrap = editor.QueryStatusByID(4208);
var stateWindowWrap = editor.QueryStatusByID(4210);
var statePageWrap = editor.QueryStatusByID(4318);
editor.ExecuteCommandByID(4209);
document.selection.Format(eeFormatJoinLines);
document.selection.Format(eeFormatSplitLines);
if (stateNoWrap >= eeStatusLatched)
editor.ExecuteCommandByID(4208);
else if (stateWindowWrap >= eeStatusLatched)
editor.ExecuteCommandByID(4210);
else if (statePageWrap >= eeStatusLatched)
editor.ExecuteCommandByID(4318);That’s enough to persuade me to register.
September 13, 2008 at 6:35 am #6205gningParticipantGah, after running that macro the display erroneously shows the paragraph’s content as selected when it isn’t. If you move the cursor through the “selected” area line by line, it redisplays each line correctly. Also, it sometimes moves the cursor point forward several lines for no reason.
October 3, 2008 at 9:02 pm #6303StefanParticipant> There is no automatic way to do this,
> but you can do that manually after writing a paragraph.
> After selecting text, you can click right mouse button,
> select Convert Selection, and then Split Lines.It took me some time to find out how this works to split lines.
Before you can split lines you have to enable one of the wrap modes.
1.) Wrap lines with one of the three modes till your lines are wrapped the way you like it.
(this wraps all lines in the whole text)
Use “Wrap by Characters Strg+2” to split after x chars (use “Tools > Properties > General > Normal Lines Margin” to set char count)
2.) Now select the lines you want to split for ever
3.) “click right mouse button, select Convert Selection, and then Split Lines.”
Now this lines are spitted to single lines, all others are wrapped only.
Then use an other wrap mode to see the remnant text in an proper way again.If ‘No Wrap’ mode is enabled, then “Split Lines” is greyed out.
This is not an familiar way… but i will check it out :-DBetter would be if split would work with ‘No Wrap Strg+1’ too.
Maybe show an dialog to enter the amount of chars to split after.
Yes, imho it’s better to have “split lines” independent from “Wrap”
That way we could wrap lines “By WIndow” Strg+3 but still split some lines at “char 72”That way we could reformat paragraphs more easy.
:-) What do you think Yutaka?October 6, 2008 at 1:13 am #6328Yutaka EmuraKeymasterStefan wrote:
> There is no automatic way to do this,
> but you can do that manually after writing a paragraph.
> After selecting text, you can click right mouse button,
> select Convert Selection, and then Split Lines.It took me some time to find out how this works to split lines.
Before you can split lines you have to enable one of the wrap modes.
1.) Wrap lines with one of the three modes till your lines are wrapped the way you like it.
(this wraps all lines in the whole text)
Use “Wrap by Characters Strg+2” to split after x chars (use “Tools > Properties > General > Normal Lines Margin” to set char count)
2.) Now select the lines you want to split for ever
3.) “click right mouse button, select Convert Selection, and then Split Lines.”
Now this lines are spitted to single lines, all others are wrapped only.
Then use an other wrap mode to see the remnant text in an proper way again.If ‘No Wrap’ mode is enabled, then “Split Lines” is greyed out.
This is not an familiar way… but i will check it out :-DBetter would be if split would work with ‘No Wrap Strg+1’ too.
Maybe show an dialog to enter the amount of chars to split after.
Yes, imho it’s better to have “split lines” independent from “Wrap”
That way we could wrap lines “By WIndow” Strg+3 but still split some lines at “char 72”That way we could reformat paragraphs more easy.
:-) What do you think Yutaka?I think this feature should be added as a plug-in or a macro. I think you or someone can write a macro for just that easily.
October 6, 2008 at 7:46 am #6331bakenengMemberaha,I find it, It works very vell.
you can press Ctrl+3,then Ctrl+a,then follow the split line action.well.
i used to doing this with TextPipe,but it will create Unrecognizable Code,
emeditor is wonderful. :-D - AuthorPosts
- You must be logged in to reply to this topic.