Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4233
    tungwaiyip
    Member

    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!

    #4234
    Yutaka Emura
    Keymaster

    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.

    #6200
    gning
    Participant

    How 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.

    #6202
    gning
    Participant

    Hah, 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.

    #6205
    gning
    Participant

    Gah, 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.

    #6303
    Stefan
    Participant

    > 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 :-D

    Better 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?

    #6328
    Yutaka Emura
    Keymaster

    Stefan 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 :-D

    Better 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.

    #6331
    bakeneng
    Member

    aha,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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.