Forum Replies Created

Viewing 25 posts - 101 through 125 (of 353 total)
  • Author
    Posts
  • Stefan
    Participant

    FYI

    You can highlight the current line (not all wrapped) from menu
    > Tools > Properties for xxxx Configuration… > [ Display ] > Part: Current line > Background color > Custom

    You can identify wrapped lines for they have no line numbers (but depends on your settings)

    For highlighting the whole wrapped line I have no solution I am afraid.

    .

    Stefan
    Participant

    >>Option to lock first line when using CSV / TSV / DSV mode

    It’s already possible:

    – execute Window > Split
    – split to two horizontal panes (put the vertical delimiter far to the right to not split vertically),
    —- while making the top of both panels very small, so you just see the first lines.

    Now you can scroll the file in the lower pane as far as you like, while seeing the header line still in the upper pane.

    .

    .

    in reply to: Restore Selection #18605
    Stefan
    Participant

    Rethinking.

    Optional restore selection after undo is cool.

    But separate restore selection would be better because we often need to restore an selection for another operation, without an undo in between.

    So please provide both, or at least the separate restore feature.

    Thanks for making EmEditor-

    in reply to: insert carriage return every n bytes? #18589
    Stefan
    Participant

    Interesting.
    The above shown ways should do it. Well, at least with smaller files size.

    Unfortunately I can’t really test on my 32-bit system,… I have to many things running and not enough free memory for testing.

     
    For an test I created a 581 MB text file with 130.000 x 4689 signs.
    Open that in 32-bit EmEditor 14.4.0b2 shows this dialog:

    ---------------------------
    EmEditor
    ---------------------------
    This file contains a very long line. 
    Very long lines will be split into several lines while the document is open, 
    but will be recombined when saved. Highlighting very long lines is disabled, 
    and some other features such as find and replace text containing CR or LF 
    might not work correctly for very long lines.
    
    c:\temp\jsout.txt
    ---------------------------
    OK   Abbrechen   
    ---------------------------
    

     

    and I ended up with 5 lines:
    4x 134217729 chars
    1x 072699089 chars

     

    “Wrap by Char” was disabled.
     
    RegEx s&r allocated 1,2 GB and I canceled after 3 minutes.

     

    So I just quickly split the lines with SED.exe
    c:\temp>sed -e “s/.\{4689\}/&\n/g” jsout.txt > jsoutSplitted.txt

    Unfortunately here I also run out of memory, but with a smaller file this works well.
    So on a 64-bit system that should be no problem,…I will try tomorrow just out of curiosity.

     

     

    Code to create a test file (due to little memory I had to do a additional step as workaround)

    Line="";
    for(B=1, Bs=4689; B<=Bs; B++){
      Line += "X";
    }
    File="";
    for(L=1, Ls=13000; L<=Ls; L++){
      File += Line ;
    }
    fso     = new ActiveXObject("Scripting.FileSystemObject");
    oFile   = fso.OpenTextFile("C:\\temp\\jsout.txt", 2, true)
    for(F=1; F<=10; F++)
      oFile.Write( File );
    oFile.Close();
    
    in reply to: Automatically determine XML documents #18585
    Stefan
    Participant

    Hi slav.
     

    You could utilize a macro script for that, which acts on event “File Opened”

     

    Steps:
    – save the macro as “DetectXML.jsee” to your EmEditor folder (I have a sub folder “Macros” created for that use)
    – utilize “Macros > Select…” and select this new macro file to add it to MyMacros category.
    – chose “Macros > Customize…”
    – select the macro (at the end of the list),
    – enable “[x] Run at Events”
    – press at [Events…] and chose “[x] File Opened”
    – ok
    – ok
    Test by opening an file containing XML structured text but lacks the XML extension (or not)

     

    The macro:
    (you may want to delete the “alert()” lines)
     

    if (document.selection.Find("<?xml",eeFindNext)){
    alert ('xml file detected'); //this line can be delete
    alert("Current Configuration: " + document.ConfigName); //line can be delete
    document.ConfigName = "XML"; //switch configuration to XML
    alert("Configuration switched to: " + document.ConfigName); //line can be delete
    }
     
      
    
    

    Could be improved with
    strFirstLine = document.GetLine( 1 );       if strFirstLine.indexOf(“<?xml”)…..
    to detect at top of document only.
     
    .

    in reply to: insert carriage return every n bytes? #18582
    Stefan
    Participant

    AH, and I forgot the official way:

    – Tools > Properties for current Configuration
    – General > Wrap by Chars : 4689
    OK

     
    To make this permanent by insert real line breaks:
    – Select All
    – Edit > Convert Selection > Split Lines

     
     
    If often need, this could be also stored as macro and added as Menu button or executed by shortcut key.

    in reply to: insert carriage return every n bytes? #18581
    Stefan
    Participant

    For to create a macro you could do this:

    – go to top of file
    – go to start of line
    – Macros > Start
    – press right arrow key one time
    – press Enter key
    – Macro > Stop
    – Macro > Edit (choose JavaScript)
    – change ‘1’ to ‘4689’ for CharRight
    – save file (to temporary file, (or to your EmEditor folder for later reuse)
    – Macro > Select This
    – go back to your document
    – undo
    – execute macro with temporary options

    – – –
    To make the macro execution much more quicker, add this at top of the macro:
    Redraw = false;

     
     

    in reply to: insert carriage return every n bytes? #18576
    Stefan
    Participant

    RegEx could be a little bit slow (by its nature), but you may try this too:

    Search & Replace
    Find: (.{4689}\s)
    Replace: \1\n

     
    Explanation:
     Find one piece of any sign (char, digit, sign) by the dot, and that at least 4689 times.
    The \s ensures that we break at a whitespace only.
    I don’t know why this works, as the normal syntax would be {4689, } ( {m,n}, so 4689 at least, but more possible till a whitespace is found)
    But it works fine.

    Then we replace by what was matched into (…) back reference group and insert an line break. (\n is enough, even on DOS/Windows, see Help)

     
    HTH?

    in reply to: Restore Selection #18548
    Stefan
    Participant

    Thanks for answer, Yutaka.

    ” incorporate to Undo” sounds fine. Good idea.

    I am only afraid that we can lose an selection on other occasions too (not only after doing an real action).
    E.g. by mistakenly clicking elsewhere after a long, carefully done selection over many “pages”.
    That’s why I developed the above suggestion.
    But restoring selection on Undo would just work fine for the majority of cases, I guess..
      
     
     

    in reply to: Restore Selection #18545
    Stefan
    Participant

    Hi Yutaka,

    have you reviewed this suggestion if you can implement this?

    New option like “[X] Remember Last Selection
    If a selection is made, store the current selection coordinates to RAM.

    New menu entry “Restore last Selection
    New Macro option document.selection.SelectLast();

     
    I would love to get this improvement.

      
    Thank you for making EmEditor.

    in reply to: Searching limited groups of lines issue #18520
    Stefan
    Participant

    Hi Tim,

    I have not tried yet to understand what you want to do or if your expression is correct,

    but concerning your “dot not matching new line character,” issue,

    go and check the search settings, e.g. via “[Customize…]” button.

     
     

    in reply to: Test Alignment #18493
    Stefan
    Participant

    After two years still no answer from Yutaka (http://www.emeditor.com/forums/topic/text-alignment/)
     
     
    So you may want to try that macro > http://www.emeditor.com/forums/topic/vertical-align-all-selected-lines-at-an-given-sign/

     
     

    in reply to: Can't enter a quote with following with space #18486
    Stefan
    Participant

    Hmm, this could be a macro with event “Character Inserted” or like that.
    Check menu “Macros > Customize…” if there is a macro listed which have a event assigned.

     
    Or perhaps you run a “automation” tool like AutohotKey or like that.
    Check from Task Manager (Crl+Shift+Esc)
     
     
    Are you the only one who work on this PC? ;D

     
     I get no better ideas right now…

    in reply to: Can't enter a quote with following with space #18481
    Stefan
    Participant

    Hi Bob,

    I never encounter this problem.
     
    This looks like you have set a snippet(*) with a quote mark as trigger?
     
    And, you should always mention your environment to help tracking this down:
    OS?, Bitness?, Language?, EE version?, portable or installed? Which configuration/Syntax? Where do you enter the quote? …? …?
     

    (*) = http://www.emeditor.com/text-editor-features/extensibility/plug-ins/snippets/
    .

    in reply to: Parallal edit function #18391
    Stefan
    Participant

    Sort of. But it is not very well implemented:

    – Have at least two documents open
    – Then utilize “Windows” or tab context menu > “New Vertical Group”

    You will get two EE windows side-by-side open.

    .

    .

    in reply to: How to delete empty lines by macro? #18384
    Stefan
    Participant

    That is because we are trying to match
    “Start-of-line, none-or-more whitespace, Linebreak”
    “^\\s*\\n”
     
     But the very last line didn’t have a linebreak at all.
     
     

    Better is to match
    “Linebreak, none-or-more whitespace, End-of-line”
    “\\n\\s*$”

    document.selection.Replace(“\\n\\s*$”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);

    – – – 
     

    Or, for really empty lines only (don’t remove those with whitespace)
    “Linebreak, End-of-line”
    “\\n$”

    document.selection.Replace(“\\n$”,””,eeFindNext | eeReplaceAll | eeReplaceSelOnly | eeFindReplaceRegExp);

     
     

    in reply to: EmEditor Professional v14.4.0 beta 1 released! #18155
    Stefan
    Participant

    Yutaka wrote:

    P.S. We are adding outlining features now. Please post any feature requests especially regarding outlining.

    Here are my suggestions:

    1.) a double click at a collapsed line in the Outline bar
    should toggle the expand-state of the collapse-region in document:
        If region is expanded, collaps it.
       Else expand it.
    (Maybe additionally hold a modifier key like CRTL for to execute that action)

     
    2.) Extra nice would be an additional option:
       [X] on expanding an top-level region, collapse all other top-level regions

     
    3.) Please add a sixth outline type: Paragraph (This type has no levels at all)
    Just take whole paragraphs as collapsing region:
     
    ——————————————————-
    Type: [Paragraph (empty lines delimited) ]
    ——————————————————-
     
    [-] Paragraph one with some lines.
       Paragraph one with some lines.
       Paragraph one with some lines.
       Paragraph one with some lines.

    [+] Paragraph two with some lines.

    [-] Paragraph three with some lines.
       Paragraph three with some lines.
       Paragraph three with some lines.

    [-] Paragraph four with some lines.
       Paragraph four with some lines.
       Paragraph four with some lines.

    [+] Paragraph five with some lines.

    [+] Paragraph six with some lines.

    ——————————————————-

    in reply to: Paste as HTML code #18153
    Stefan
    Participant

    For others with same interest;

    in the meantime I utilize JavaScript to paste HTML format from clipboard, seems to work fine for me.
     

    EmEditor JavaScript macro:

    // get HTML formated clipboard content:
    strOUT = clipboardData.getData("html");	
    
    // if there is no HTML formated clipboard content, get plain TEXT content:
    if( strOUT == "" ){
    	strOUT = clipboardData.getData("text");
    	status = "TextApe: No HTML format found. Will paste pure text.";
    }else{
    	status = "TextApe: HTML format found and pasted.";
    }
    
    // write to document:
    document.selection.text = strOUT ;
    

     
     
    Until I got this idea, I utilized Peters ‘Windows clipboard raw viewer’ to get the HTML format.
    http://www.peterbuettner.de/develop/tools/clipview/
    Thanks, Peter.
    .

    in reply to: Multiple Select #18092
    Stefan
    Participant

    Aha! Thanks. :D

    in reply to: Multiple Select #18073
    Stefan
    Participant

    I could multiple select the cursor at the end of “cat” and “dog” and then simply type “s”

    Ctrl+LeftClick behind “cat”, the space is selected.
    Ctrl+LeftClick behind “dog”, the space is selected. (there have to be one)
    Just type “s  “.
    Done.
     
     
     

    in reply to: Multiple Select #18066
    Stefan
    Participant

    Well, “Multi Selection” is for doing multiple selections.
     
    Just Ctrl+LeftClick will do maybe nothing, depending perhaps on the setting. (don’t know)
    For me Ctrl+LeftClick will select a whole word.
    Ctrl+LeftClick again, or Ctrl+Selection will select additional portions of text. That what it is for.
     
    Have you enabled Multi Selections? > Tools Customize > Edit
     
    I don’t know what you expect should happen?
    Maybe take a look (It’s not easy to find anymore on the new forum, but with G00gle it is findable):
     
    New in Version 13: Multiple Selection Editing
    http://www.emeditor.com/text-editor-features/history/new-in-version-13/
     
    Upcoming new feature: Enhanced Multiple Selections
    http://www.emeditor.com/tag/v13-1/

    in reply to: Insert Numbering – Padding #18065
    Stefan
    Participant

    Yes, this is already possible:
     
    just add the wanted amount of zeros
    in front of the start number in the “First Line:” box
    of the Insert Numbering dialog (Alt+N)
     
    “First Line: [01        ]”
     
     

    in reply to: Align Left in x64 #17978
    Stefan
    Participant

    Hi Fish,

    if you didn’t find such a Plugin in the Library at http://www.emeditor.com/library/#toggle-id-6
    it is because nobody have made such a Plugin.
    .
    .

    But why do you need such a Plugin at first place?

    As I read the description “Align Left plug-in: Removes the spaces at the beginning of each selected line.”
    me think you can do this by utilizing a macro too.

    document.selection.Replace(“^\\s+”,””,eeFindNext | eeReplaceAll | eeReplaceSelOnly | eeFindReplaceRegExp);

    Such macro you can launch by main or context menu, by menu bar button or by keyboard shortcut.
    If you need more help,… just ask.

    in reply to: Any way to separate data by bytes? #17837
    Stefan
    Participant

    I do not understand what you are after, no1.

     
    Can you explain in more detail? Best with before/after examples and which rules to attend.
     
    BEFORE:
    xxxxxx
    AFTER;
    xx; xx; xx; 
     

    Stefan

    in reply to: Optional CLOSE modified Document WITHOUT ask for SAVING #17836
    Stefan
    Participant

    I could had sworn that that happens :D
     
    I have searched but of course not there:

     
    Help > Keyboard Map…
    Search for “close”
    Right click at “Close without Save
    Assign shortcut key like Ctrl+Alt+W
    OK
    [X]
     
    Done!
      
     
    Ctrl+Alt+W, W, W, W, W, W, W…
    Wonderful!
    Thank you Andreas for the hint. :thumpsup:

Viewing 25 posts - 101 through 125 (of 353 total)