Forum Replies Created

Viewing 25 posts - 126 through 150 (of 3,647 total)
  • Author
    Posts
  • in reply to: How to process multiple selections? #28214
    Yutaka Emura
    Keymaster

    If the Auto-Complete Brackets/Quotation Marks option is set, you can simply type [.

    However, I know you want to write a macro to process multiple selection scenarios. Here is an example:

    
    sInsertBefore = "[";
    sInsertAfter = "]";
    var axT = [];
    var ayT = [];
    var axB = [];
    var ayB = [];
    
    Redraw = false;
    CombineHistory = true;
    nCount = document.selection.Count;   // retrieves the number of selections
    for( i = 1; i <= nCount; ++i ) {     // loop through multiple selections
    	x = document.selection.GetTopPointX( eePosLogical, i );  // retrieve x of the left side of each selection
    	axT.push( x );
    	y = document.selection.GetTopPointY( eePosLogical, i );  // retrieve y of the left side of each selection
    	ayT.push( y );
    	x = document.selection.GetBottomPointX( eePosLogical, i );  // retrieve x of the right side of each selection
    	axB.push( x );
    	y = document.selection.GetBottomPointY( eePosLogical, i );  // retrieve y of the right side of each selection
    	ayB.push( y );
    }
    
    for( i = nCount - 1; i >= 0; --i ) {
    	document.selection.SetActivePoint( eePosLogical, axB[i], ayB[i] );   // set the cursor to the right side of each selection
    	document.selection.Text = sInsertAfter;    // insert ']'
    	document.selection.SetActivePoint( eePosLogical, axT[i], ayT[i] );   // set the cursor to the left side of each selection
    	document.selection.Text = sInsertBefore;   // insert '['
    }
    
    in reply to: JSON Lines document type #28212
    Yutaka Emura
    Keymaster

    I asked the developer of CSS HTML Validator. He wrote the next update of CSS HTML Validator (not Lite version included within EmEditor) will include support for JSON Lines syntax checking. If you haven’t already, you can buy a license with the discount here:
    https://www.htmlvalidator.com/emeditor/

    in reply to: “Compare” problem #28210
    Yutaka Emura
    Keymaster

    I’ve reproduced this issue, and it will be fixed on v21.7.910.
    Thank you.

    Yutaka Emura
    Keymaster

    Hello,

    I couldn’t reproduce the issue. Please try the latest beta version. If the issue still persists, how did you change the case?

    Please try:

    1. Download the latest beta portable version at https://support.emeditor.com/en/downloads

    2. Try the same procedure to see if it still crashes.

    3. If it didn’t crash, try changing the settings so that you can reproduce the crash. If it crashes again, please let me know what settings you’ve changed.

    Alternatively, you can export the current settings from the currently installed EmEditor, select Reset All Settings on the Tools menu, and see if you can still reproduce the issue. Restore your settings gradually to see which settings are related to the crash.

    Thank you,

    in reply to: Spell check multiple languages #28205
    Yutaka Emura
    Keymaster

    Hello,

    I might think about this in the future, but I believe it is easy to work around. Dictionary files are plain text files. If you look at en_US.dic in the Dictionaries folder of the EmEditor install path, you will see the list of words. You can simply combine two dictionaries to create a new language. You will also need .aff file. I believe you can use the same file for two languages.

    Another workaround is you can append either one dictionary to “UserDic.bin” file located in %appdata%\Emurasoft\EmEditor\Spell. “UserDic.bin” is a user dictionary. When you open “UserDic.bin“, you will need to specify UTF-16LE without signature.

    in reply to: “Compare” problem #28204
    Yutaka Emura
    Keymaster

    Hello,

    I couldn’t reproduce the crash.

    Please try:

    1. Download the latest beta portable version at https://support.emeditor.com/en/downloads

    2. Try the same procedure to see if it still crashes.

    3. If it didn’t crash, try changing the settings so that you can reproduce the crash. If it crashes again, please let me know what settings you’ve changed.

    Alternatively, you can export the current settings from the currently installed EmEditor, select Reset All Settings on the Tools menu, and see if you can still reproduce the issue. Restore your settings gradually to see which settings are related to the crash.

    Thank you,

    Yutaka Emura
    Keymaster

    If you don’t like the current behavior, go to Properties for All Configurations (Tools menu), select Keyboard page, select Edit category, select Tab or Increase Line Indent command, select Tab form the Current Keys list, and click Delete button.

    Yutaka Emura
    Keymaster

    This is the correct behavior. When you press TAB when multiple lines are selected, the behavior becomes Indent.

    in reply to: Batch/Bulk replace import improvement suggestion #28185
    Yutaka Emura
    Keymaster

    This is due to the Windows design, and I’ve already tried improving this speed, but I won’t be able to optimize it furthermore. Instead, please create a link by dragging and drop a linked file to the batch list, or clicking “Add to Batch” button and then selecting “Add a Linked File“.

    See our videos to find how to create a link.
    How to search (filter) a large text file for many (millions of) strings
    How to replace many (millions of) strings in a large text file

    in reply to: Simple “real lines”-export for the compare tool #28181
    Yutaka Emura
    Keymaster

    I’ve fixed the crash bug on v21.7.904.
    Thank you!

    in reply to: JSON Lines document type #28176
    Yutaka Emura
    Keymaster

    Hello,
    Is this a question about the Syntax check feature of EmEditor in the JSON configuration? If so, the syntax check is performed by the CSS HTML Validator engine, and I will forward your message to the developer of the engine.

    in reply to: Where are bookmarks stored? #28161
    Yutaka Emura
    Keymaster

    “Pin to this (favorite) list” should NOT be influenced by 100-day limit.
    The 100-day calculation applies from the date of access.

    in reply to: Where are bookmarks stored? #28156
    Yutaka Emura
    Keymaster

    1) The difference in size is due to the difference in the number of files (including bookmark info).

    2) Correct.

    3) “Easily handle files up to 16 TB” and “file history” are not related at all.

    I hope this clarifies your questions.

    in reply to: Macro to replace string on a specific condition #28154
    Yutaka Emura
    Keymaster

    I couldn’t reproduce the issue. Are you using the latest version (21.6.907)?

    in reply to: Macro to replace string on a specific condition #28152
    Yutaka Emura
    Keymaster

    As for the first screenshot, you can set the “Do not show this message again” check box to disable this message in the future.

    As for the second screenshot, I am not sure what the issue is. Can you please create a minimum reproducible test case so that I can test the issue?

    in reply to: Macro to replace string on a specific condition #28150
    Yutaka Emura
    Keymaster

    You can write a macro like this:

    
    if( document.selection.Find( "<span class=\"bld\">", eeFindAround | eeFindCount ) <= 1 ) {
    	document.selection.Replace( "<span class=\"bld\">A</span>", "", eeReplaceAll );
    }
    
    in reply to: UTF-8 without signature recognised as Vietnamese #28149
    Yutaka Emura
    Keymaster

    1. This is not a bug, but any file encoding detection could fail. I would recommend not using the Detect All option.

    2. To open files always as UTF-8, please deselect the Detect All option, and select UTF-8 as Opening Encoding in the File page of configuration properties.

    in reply to: Where are bookmarks stored? #28148
    Yutaka Emura
    Keymaster

    On the new version, 100 days is the maximum value for both Save Cursor Position and Save Bookmarks options. This was to prevent file history from becoming too large.

    The bookmark and cursor position info is stored in %APPDATA%\Emurasoft\EmEditor\Common\FileAttr.bin.

    If you make automatic backups (using TotalCommander), you should restore the files (or move the files to original drive/location) before opening the files to see bookmarks.

    in reply to: Simple “real lines”-export for the compare tool #28102
    Yutaka Emura
    Keymaster

    You could select Bookmark Changes on the Macros menu to set bookmarks on changed lines. Then, select the Invert Bookmarks command to set bookmarks on unchanged lines. You can then extract bookmaked lines. This way might not distinguish between changes and added/delete lines, but might help.

    Yutaka Emura
    Keymaster

    To go back to normal, please select the Compare command again, or Reset to Normal Mode on the Macros menu.

    in reply to: Regex replace issue #28094
    Yutaka Emura
    Keymaster

    I am not exactly sure what your question is. Please write an example, what you expect to match literally, and what EmEditor actually matches.

    in reply to: Regex replace issue #28090
    Yutaka Emura
    Keymaster

    The macro should be :
    document.selection.Replace("$","[\\\\google]",eeReplaceAll | eeFindReplaceRegExp,0);

    in reply to: Error installing EmEditor 21.5.x missing DLL #28087
    Yutaka Emura
    Keymaster

    Please download the newest version at https://support.emeditor.com/en/downloads/suggested, and run the downloaded installer.

    in reply to: Error installing EmEditor 21.5.x missing DLL #28084
    Yutaka Emura
    Keymaster

    EmEditor still supports Windows 7 SP1 as of this writing, but Windows 7 needs to be most up-to-date including Service Pack 1. Have you applied all available updates for Windows 7?

    in reply to: Version 21.5.2 Bug #28080
    Yutaka Emura
    Keymaster

    I’ve just released v21.5.904, which addressed this issue. Can you please try it and let me know if it works for you? Thanks.

Viewing 25 posts - 126 through 150 (of 3,647 total)