Forum Replies Created

Viewing 25 posts - 3,076 through 3,100 (of 3,680 total)
  • Author
    Posts
  • Yutaka Emura
    Keymaster

    chabulier wrote:

    If you have more than one million tokens to replace, you will need to increase the value in the Undo Max Number text box in the General tab of configuration properties. I might increase this default value, and also add the warning message box when undo may not be available.

    I don’t think it’s the problem. In fact my file only have 931380 lines, and only 894261 entries were replaced. The max undo number should be 1,000,000(However this value seems can not be set more larger).

    Thanks for your reply. Please let me know if you need more information for recreate this issue.

    You can set more than 1,000,000. Can you try with 10,000,000? Thanks!

    in reply to: Export ALL settings into ini files? #5797
    Yutaka Emura
    Keymaster

    LTT wrote:
    It seems the “Export all settings into ini files” action does not export ALL the settings. I found at least customized menus, recents, and macros were ignored.

    BTW, how can I restore the data from ini to registry? By removing the ini files during running?

    Can you make sure INI files are used? You can check from the About dialog box on the Help menu.

    You cannot restore the data from Ini to registry at this time. I will add this feature in future versions. Thanks!

    Yutaka Emura
    Keymaster

    chabulier wrote:
    Hey,
    When I downloaded the 7.07 and test the replace speed, I noticed that when I do a mass replacement and then undo the change. Not all the values in emeditor displayed was undoed.
    When I close emeditor and reopen this file, seems everything is OK, not sure if it’s only an display issue or something else.

    Test an small file, it’s OK.

    In the meantime, the undo change will display an process window and the speed was slower than before version.

    search: DEBUG
    replace: [DEBUG]

    If you have more than one million tokens to replace, you will need to increase the value in the Undo Max Number text box in the General tab of configuration properties. I might increase this default value, and also add the warning message box when undo may not be available.

    in reply to: How to highlight lines with bookmarks? #5793
    Yutaka Emura
    Keymaster

    deity wrote:
    Bookmarks not so visible in text, how I can do highlighting line with bookmark and save such file?

    It is not currently possible to highlight line with a bookmark. I will consider that in future verisons.

    To save bookmarks for recently used files, check “Save Cursor Position and Bookmarks” check box (Tools menu > Customize > File tab).

    in reply to: All toolbars remember their status #5792
    Yutaka Emura
    Keymaster

    Veign wrote:
    Very good. Should have known you would have already thought of it.

    Keep up the great work on an excellent text editor.

    You are welcome! Let me know if you have any other questions.

    in reply to: All toolbars remember their status #5784
    Yutaka Emura
    Keymaster

    Veign wrote:
    The tools bars for plugins won’t remember their state when emEditor is closed and restarted. Would be nice if I show the HTMLBar that when I open emEditor this toolbar is displayed.

    HTMLBar can be configured so it can display the HTMLBar only when an HTML file is active. You can check your settings from the HTMLBar properties.

    in reply to: EmEditor Speed #5781
    Yutaka Emura
    Keymaster

    gan wrote:
    I did a test on the same file, but with 1129344 entries to replace and as you said in this case emeditor is faster without any doubt…..especially when “Match case” is checked.

    I don’t know if textpad use ANSI comparison or not, but if that is the case i guess it can make a difference as well as you also said.

    In any case i don’t find the speed to be a problem for either of them so it was never mean’t as a complaint…..just an observation.

    Regards
    Gan

    I’ve played around with the source code, and succeeded to optimize the Replace function. The next minor version (7.00.7) will become much faster than previous versions (about 5X faster when ignoring case, and 2X faster when matching case in my test).

    in reply to: EmEditor Speed #5778
    Yutaka Emura
    Keymaster

    The point is the number of tokens (occurrences). If you have a million of tokens to replace, you will see EmEditor is faster. Also, it is not fair to compare EmEditor with a non-Unicode text editor. There is a big difference between ANSI comparison and Unicode comparison.

    in reply to: Help me create a Macro #5776
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    Thanks a lot for replying

    I tried what u told, but the number of Empty elements present in the is many, so if i use the replacment option it deletes one instance at a time, and the number of files with such instances are also many, so it will be time consuming.

    I created a macro to replace all empty elements in at one go:

    document.selection.Find(“”,eeFindNext | eeFindReplaceRegExp);
    document.selection.CharLeft(false,1);
    editor.ExecuteCommandByID(4153);
    document.selection.Find(“”,eeFindNext | eeFindReplaceRegExp);
    document.selection.Replace(“(]+>){1,20}”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
    document.selection.Replace(“”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
    document.selection.CharRight(false,1);

    But i dont know how to make it run on all the files.
    There are 1000’s of such files.

    Thanks in Advance!!

    If you have so many files, how about ReplaceInFiles Method (Editor object)?

    in reply to: Help me create a Macro #5774
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    Hello:

    Please help me to create a macro:

    I want to delete the follwoing:

    (]+>){1,20} (empty elements)

    but there is a condition i want to delete the above only when it comes in the following parent element i.e..

    ….

    For e.g.

    BUNDESARBEITSGERICHT

    URTEIL

    The above should apply to all the XML files in a particular path.

    Thanks in Advance

    Go to Customize > Search tab, and check “Regular Expressions Can Match New Line Characters”, and set “Additional Lines to Search for Regular Expressions” to 10.

    Find:
    (.*?)(]+>){1,20}(.*?)

    Replace with:
    13

    in reply to: Restoring File Tree Window #5770
    Yutaka Emura
    Keymaster

    GJim wrote:
    I inadvertently closed the side window that shows the folders/files tree. I have been through all the various menu options, but I don’t find a way to restore that window.

    AtDhVaAnNkCsE

    G’Jim c):{-

    Click “Explorer” button on the Plug-ins toolbar, or click Plug-ins on the Tools menu, and then check “Explorer”.

    in reply to: Problem while replacing the multiple blank lines #5768
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    can you make this macro run on all the files in certain path where those files are present. please!!!!

    In that case, you can go to “Replace in Files” on the Search menu, and

    Find:
    (rn){2,}

    Replace with:
    rn

    File Type:
    *.txt (or enter file type)

    In Folder:
    File folder

    Check “Use Regular Expressions”
    Don’t check “Keep Modified Files Open”

    in reply to: Problem while replacing the multiple blank lines #5766
    Yutaka Emura
    Keymaster
    in reply to: EmEditor Speed #5761
    Yutaka Emura
    Keymaster

    I have 1 million line US-ASCII text (80.9MB), and the content is:


    1-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
    2-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
    3-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
    ...

    I replaced “abc” with “XXXXXXXXXX”. That means there are 2 tokens in each line to replace when case matching, or 3 tokens when no case matching, total of 2 (or 3 ) million tokens in the entire file. The host is Windows XP SP2 (English) in Virtual PC 2007 (within Windows Vista 64-bit Intel Core 2 Quad Q6600, 8GB RAM). All software programs are freshly installed.

    Here is my result:

    Textpad 5.2.0 32-bit
    No case matching: 34 sec
    Match case: 22 sec

    Notepad++ 4.7.5
    No case matching: 10 min 3 sec
    Match case: 6 min 32 sec

    EmEditor Professional 7.00.5
    No case matching: 9 sec
    Match case: 5 sec

    Thus, EmEditor Professional was the fastest of all these three. I also found something noteworthy: Only EmEditor allows you to cancel replacing during the operation. Other programs do not allow you to abort once you hit “Replace All” until the operation is finished. TextPad does not allow you open Unicode files (such as Japanese characters) correctly (it opens but converts Unicode characters into a substitute character “?”). I wanted to compare Unicode files, but couldn’t because of this.

    I don’t know why you have the different result. Maybe because you have only a few tokens to replace, or your file might be encoded in a different encoding. This is the reason it would be more helpful if you could email me your sample file so I can reproduce your issue. Is your Windows system encoding English? (You can find out from Control Panel > Regional Language Options > Advanced tab – “Language for non-Unicode programs”)

    in reply to: Multiple Replacment in all the Files #5758
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    I tried to use the macro script for replacement in all the files.

    below is the sample, here i am getting some error report for closing of “)” at sandeep, “D:PRASHOB, can you please tell me exactly where i am making the mistake.

    editor.ReplaceInFiles( “prashob”, “sandeep, “D:PRASHOBLY-01juriontesttest2*.xml”, eeReplaceBackup, eeEncodingSystemDefault, “”, “D:PRASHOBLY-01juriontesttest2backup” );

    ” is missing after sandeep


    editor.ReplaceInFiles( "prashob", "sandeep", "D:PRASHOBLY-01juriontesttest2*.xml", eeReplaceBackup, eeEncodingSystemDefault, "", "D:PRASHOBLY-01juriontesttest2backup" );

    in reply to: Current Line Highlighting #5755
    Yutaka Emura
    Keymaster

    SteveH wrote:
    I’ve never been completely comfortable with the way EmEditor handles current line highlighting and feel it would be be more logical to always have the current line highlighting always in the foreground.

    I would prefer if it the highlighting was not broken up with other elements such as string highlighting or URL highlighting as shown in this example.

    You can use “Transparent” as background color for URL and highlighting strings. To do this easier, start from “EmEditor Standard” as the Theme (if “EmEditor Classic” was selected), and then start customizing Current Line background.

    in reply to: Multiple Replacment in all the Files #5747
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    IS ANY ONE THERE TO SOLVE MY QUERY.

    I NEED TO KNOW WHETHER MULTIPLE REPLACMENT IS POSSIBLE OR NOT

    SOLVE MY QUERY PLEASE.

    I posted two samples

    Replace All – mulitple times
    http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=675&forum=19

    Replace in Files – multiple times
    http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=676&forum=19

    Once these macros are included in your My Macros list, you can assign these macros to any shortcut keys or toolbars.

    The All Documents checkbox in Replace dialog box — I will consider that feature in future versions. For now, you can use a macro to do that job. Thanks!

    in reply to: EmEditor Speed #5742
    Yutaka Emura
    Keymaster

    thylocene wrote:
    As I said, my settings were out-of-the-box.

    Search and replace string did not include regex

    ex. Replace AND with XXXXXXXXXX

    Pretty simple

    My environment is Vista 64-bit, but I do not think that has anything to do with it since the other programs are 32-bit as well so some thunking should be taking place.

    I have 1 million line text (81MB), and did a simple replace (Replace “abc” with “XXXXXXXXXX”). In my machine it took about 8 seconds (when “Match Case” is off), and 3 seconds (when “Match Case” is on). Is this comparable to your results? You might want to try “Match Case” on, since this changes the speed dramatically. I will still look into more details. Thank you!

    in reply to: Replace all In all the opened Files #5741
    Yutaka Emura
    Keymaster

    Replace command will not be recorded automatically.

    This is what you need:


    // JavaScript
    docs = new Enumerator( editor.Documents );
    for( ; !docs.atEnd(); docs.moveNext() ){
    doc = docs.item();
    doc.Activate();
    doc.selection.Replace( "abc", "def", eeReplaceAll );
    }

    in reply to: delete all previous text #5740
    Yutaka Emura
    Keymaster

    user wrote:
    hello

    CTRL+D deletes all the previous characters (from the position of the cursor), but only inside the same line

    can I make another key combination to delete all the previous text (all lines and characters)?

    thanks

    CTRL + SHIFT + HOME, and then DELETE

    If you would like, you can record this combination to a macro.

    Yutaka Emura
    Keymaster

    maynard wrote:
    unicode2decimal.js works, but unicode2hex.js is still broken.

    It is OK now. Make sure you clear cache on your browser before you download again.

    Yutaka Emura
    Keymaster

    maynard wrote:
    I downloaded a couple of macros, but, every time that I try to run one on my test file (.h in UTF-8), I get an “error in line 1” message. I notice that the .js files start with a BOM and are rife with nulls. :-(

    I am sorry. Those files were corrupted, but I have just fixed those. Thank you for reporting the error.

    in reply to: Sort Number #5732
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    Is it possible to sort number or text in ascending or descending order.

    I downloaded some pluggin called sortnumber500s.zip and copied all it content to my pluggin folder, but I dont see any option or icon for this when i open my editor.

    Please help me in this

    Thanks!!!!

    You downloaded the source code of the plug-in. You will need to download the built versions either at:

    http://www.emeditor.com/modules/mydownloads/viewcat.php?cid=4 (32-bit)
    http://www.emeditor.com/modules/mydownloads/viewcat.php?cid=5 (64-bit)

    After installed, the plug-in should be found in the Plug-ins toolbar, or on the Tools menu > Plug-ins.

    in reply to: Extend Selection #5728
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    Hellooo

    Is there is any option in the editor to have Extend Selection
    When we do ctrl+F (Find) is the tool capable of doing the extendable selection,
    Also in Ctrl+G (Go to the line)

    Before emeditor i used to use Textpad having these functions in the textpad is of great help as it comes very useful to find something from one point to the another,
    This comes very useful when recording the macro also.

    Is it possible with the Emeditor then please let me know.

    Thanks

    You can press F8 before searching or jumping, so the selection becomes the keyboard selection mode. I hope this helps.

    in reply to: File name in List format #5725
    Yutaka Emura
    Keymaster

    prashob12 wrote:
    hello All

    I am new to the forum

    Is it Possible to view the file name of open documents in the editor in a list format.

    now if i open multiple documents its all coming on top of the window. this way its confusing to identify a particular documents. It would be helpful if i can view it in a list format.

    :-(

    Did you check “Open Documents” plug-in?

Viewing 25 posts - 3,076 through 3,100 (of 3,680 total)