Forum Replies Created

Viewing 25 posts - 3,101 through 3,125 (of 3,680 total)
  • Author
    Posts
  • in reply to: EmEditor Speed #5724
    Yutaka Emura
    Keymaster

    thylocene wrote:
    Hi
    The size of the text file is around 26 Mb (around 119,000 lines). EmEditor settings are out-of-the-box. In all cases each editor I have tested is with the same file, window size etc,etc.

    I am trying to reproduce your issue, but please let me know more details:

    – what is your search term?

    – “Match Case”, “Escape Sequence”, “Regular Expressions”?

    – Did you select “Wrap by Window” or “Wrap by Characters”?

    – If possible, please email me a sample file (after zipped) at [email protected]

    I will try to reproduce, and will cerntainly try to fix your issue.

    Thank you.

    in reply to: Properties of All Configurations – transfer to another PC #5722
    Yutaka Emura
    Keymaster

    bennett wrote:
    Dear Yutaka,

    In Tools > Properties of All Configurations > Highlight (1) I have at least 60 words or expressions listed for highlighting. Works perfectly. Is there a way of transferring these setting to another machine. I’ve a file with the words highlighted. However, when I transfer the file to another machine, the highlights disappear. Is there a way of transferring the settings in Tools > Properties of All Configurations > Highlight (1) to another machine. We have four registered copies of EmEditor Pro.

    Many thanks.

    bennett

    Use “Import and Export Wizard” you can find on the Tools menu. In this wizard, select the first item “Export all personal settings into a file.”, and in another machine use “Import all personal settings from a file.”

    in reply to: Use Ouput Bar Problem #5715
    Yutaka Emura
    Keymaster

    ileadu wrote:
    Java compile
    Customize Tools Setting
    http://cdwww.twbbs.org/albums/ileadu/aag.png
    \%WinDir\%system32cmd.exe
    $(Path) /k “C:Program FilesJavajdk1.6.0_06binjavac.exe” -Xlint $(Filename).java
    $(Dir)
    C:Program FilesJavajdk1.6.0_06binjavac.exe

    Emeditor 7.00.5
    When I checked “Use Ouput Bar”, to compile is very long time.
    But I unchecked it, it’s immediate

    Emeditor 6.00.4
    When I checked “Use Ouput Bar”, to compile is immediate.

    I think that it may be a bug or not be optimized.

    If you want to use Output Bar, you should specify only the executable (in this case, “C:Program FilesJavajdk1.6.0_06binjavac.exe”) in the Command text box, and the arguments in the Arguments text box. You don’t need to specify cmd.exe anywhere.

    in reply to: EmEditor Speed #5713
    Yutaka Emura
    Keymaster

    thylocene wrote:
    Hi
    I have downloaded an eval copy of the EmEditor to compare against other editors (I am looking for a good fast replacement for notepad). Whilst I can see great potential in the program, I am finding it a bit slow when compared to other products that I have tried such as textpad, notepad++, etc. for things like paging through large text files, search and replace etc. For example textpad is 2 x to 3 x faster at search and replace and much faster at paging.

    My question is do you guys aim to address this in the near future?

    First, a few simple questions: What is the typical size of text file you are trying to page or search/replace? Have you changed any settings on the Advanced tab of the Customize dialog box (on the Tools menu)? We certainly want to optimize the speed in all cases.

    in reply to: regex bugs #5711
    Yutaka Emura
    Keymaster

    wOxxOm wrote:
    it is not checked.

    I cannot reproducd your problem. Please email a sample file with detial procedure how to reproduce your problem.

    in reply to: wish add "Match Count" #5708
    Yutaka Emura
    Keymaster

    yongfa365 wrote:
    :-?
    Macro or “Word Count” all ok I can do it

    However, no integrated directly into the Find / Replace box on the convenience

    Then use the macro or “Word Count” plug-in. I don’t know why you want to add another extra feature to the Find/Replace dialog box just to increase the size of the core program “emeditor.exe”. The macro and plug-ins will not bloat the program, but the Find/Replace dialog box will bloat the program.

    in reply to: wish add "Match Count" #5706
    Yutaka Emura
    Keymaster

    yongfa365 wrote:
    sometimes when I search a string
    I want to know its Match Count only

    eg:
    str=”我是柳永法 http://www.yongfa365.com
    search d
    Match Count : alert(“3”)

    this is very useful in large file

    the 7.0.0.5 “Word Count” is OK

    However, I search the characters are changed from time to time, if this feature added to the Find / Replace box will be very convenient

    I see. Since you are using a macro, there are many built-in functions available within JavaScript and VBScript you can count certain characters.

    Yutaka Emura
    Keymaster

    jonhutch24 wrote:
    Sorry, let me show you an example

    Let’s say I make a snippet and it looks like this (this is just in theory):

    if $con1$ = $con2$ then
    $expression$
    end if

    Now when I run the snippet I’d like $con1$ already highlighted so I could just write over it, and when when I hit the tab key, it would move to $con2$ and highlight it so I could write over it, and when I hit tab again it would move to $expression$ and highlight it so I could type over it.

    So my typing would look something like this:
    Run the snippet
    var1 -> TAB -> 23 -> TAB -> writeline(“It’s 23!”)

    and the text editor in the end would have:
    if var1 = 23 then
    writeline(“It’s 23!”)
    end if

    does this make any more sense? Sorry, I’m not very good at explaining things some times… :-?

    Yes, that makes a perfect sense. Thanks!

    in reply to: regex bugs #5701
    Yutaka Emura
    Keymaster

    wOxxOm wrote:
    7.0.4
    goal: find items with Actor = Style
    regex: ^Dialogue: (.+?),(.+?),(.+?),(.+?),4,
    supposed match: Dialogue: 0,0:00:16.70,0:00:17.64,Naga,Naga,0000,0000,0000,,text
    Wrong match found by EmEditor: 0,0:00:16.70,0:00:17.64,Naga,Nagasumi,0000,0000,0000,,text

    regex S&R in Files, 1
    regex: ^Style: (.+?),.+?,(.+?),(.+?),(.+?),(.+?),(.+?),.+?,(.+?)$
    replace: Style: 1,Tahoma,2,3,4,5,6,-1,7
    enabled options: *.ass, UseRegEx, ConfiguredEncoding
    result: replaces in one file then crashes application

    S&R in Files, 2
    if KeepModifiedFilesOpen is enabled then only 1-3 of matching files in the folder are modified. When the option is disabled then all the files are correctly modified on-disk

    I don’t have any problems with 7.00.5

    Make sure “Regular Expressions Can Match New Line Characters check box” is not checked in the Search tab of the Customize dialog box.

    in reply to: wish add "Match Count" #5699
    Yutaka Emura
    Keymaster

    yongfa365 wrote:
    sometime this is very useful

    I am not sure exactly what the Match Count is, but the new Word Count plug-in included in Version 7.00.5 allows you to define the number of characters or lines matching specified regular expressions.

    in reply to: Deleting a file #5698
    Yutaka Emura
    Keymaster

    PaperPlate wrote:

    Yutaka wrote:
    I don’t know what you mean by “activate a tag”. If you want to select a certain document (tab), then you can do using Documents colleciton and Document.Activate method.

    When you do a “Find in Files” or, use the FindAll.vbee macro, the output in the new tab is formatted with a tag (a link to the file and the line of that file) with a display of the line it found the search parameter on.

    I am wondering if its possible to activate (click) this tag in a macro to jump to that line in the original file.

    Yes, you can use the Tag Jump command.
    http://www.emeditor.com/help/cmd/edit/tag_jump.htm


    editor.ExecuteCommandByID(4147);

    in reply to: Deleting a file #5696
    Yutaka Emura
    Keymaster

    PaperPlate wrote:
    I’ll just ask it as a bunch of questions, since I did kind of ramble! I did mean the find all macro you listed, though I did retool it a bit (and rewrote it in .js, that is where the confusion came from).

    1) Is it possible to delete a file using EmEditor macros?
    2) Or, possible to delete a file using a plugin?
    3) Can the macro module activate a “tag” in a document?

    Let us say I use the FindAll.vbee macro in the following file using the search string, “if”

    If a == b
    ElseIf b > 1
    Message “Hello world!”
    End
    End // If
    #—-

    FindAll would give me:

    c:/filename/etc/etc/etc.etc(1): If a == b
    c:/filename/etc/etc/etc.etc(2): ElseIf B > 1
    c:/filename/etc/etc/etc.etc(5): End // If

    Now lets say I edited the text that was displayed after I did the FindAll, on line two to (since “Hello world!” would never message with the current logic):

    “c:/filename/etc/etc/etc.etc(1): If a != b”

    After running the new macro it would compare your original file to the FindAll output you editted, then replace the lines you edited back into your original file, using the tags as references.

    Long post but, is this possible with EmEditor?

    Yes, you can use DeleteFile Method of FileSystemObject.
    http://msdn2.microsoft.com/en-us/library/thx0f315(VS.85).aspx
    See also http://www.emeditor.com/help/macro/tutorial/tutorial_copyfile.htm


    if( document.FullName == '' ){
    alert( "The file is untitled." );
    }
    else {
    fso = new ActiveXObject( "Scripting.FileSystemObject" );
    fso.DeleteFile( document.FullName );
    }

    I don’t know what you mean by “activate a tag”. If you want to select a certain document (tab), then you can do using Documents colleciton and Document.Activate method.

    The FindAll output you edit will not be reflected automatically.

    in reply to: Deleting a file #5692
    Yutaka Emura
    Keymaster

    PaperPlate wrote:
    This is actually part of a larger “project” to addon on to the FindAll.jsee in the macro section (mighty nice little macro). What I’m trying to do is after doing a FindAll allowing editing of the new file instance.

    So if you were to do a find all on “if” for example, yo would see every line with an “if” in it. Then the user could edit that new tabbed file and run another macro to drop the changes they made back in. So if you only edited one line, say line 200, it would compare, then dump that new line in since it was a change.

    The only way I see to do this in EmEditor (I only started working with EmEditor macros this week*) is to save the file generated by the FindAll macro, then compare that file, using the tags as references) to the original file. But I would want to delete that saved file after so as not to clutter the current directory.

    Another possibility would be to just save to a dump “log” folder and use that as your point of reference, and then not worry about deleting.

    So is this possible at all? Could I create a macro to run on the FindAll (after its saved since I’m pretty sure you couldn’t run on the non saved file since its not saved, or could you?).

    *EmEditor is a great tool, thank you for it!

    I am not exactly sure what you would like to do, but does FindAll.jsee mean FindAll.vbee at http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=172 ?

    You might also want to try “Replace in Files” feature of EmEditor (on the Search menu). You can also try “Search” plug-in of EmEditor.

    in reply to: Insert Table in HTML #5689
    Yutaka Emura
    Keymaster

    bennett wrote:
    I’m very new to EmEditor and HTML! Using EmEditor Pro 7.00.04. When I insert a new table I get:

    Would it be possible to produce the following everytime I want to insert a new table:

    I’m using EmEditor to update a web site. Without the

    between

    and

    the table simply disappears!

    There might be some customisable setting that will enable me to do the above.

    Many thanks.

    bennett

    I assume you are talking about HTMLBar plug-in. You are right, the Table button is not customizable. Most other buttons are customizable from the HTMLBar plug-in Properties > Customize Buttons button. If you know how many rows and columns of table you usually create, you can select “Inser Tags” when you customize the button and insert those tags you need. Or you might want to try a macro. I might consider the ability to change table details in the plug-in in the future.

    Yutaka Emura
    Keymaster

    jonhutch24 wrote:
    Ok what I would REALLY like is tab stops in the snippets. That’s my request! :)

    I am not sure what you want. You can use t as a tab character.

    in reply to: Please make deployment of macros easier! #5685
    Yutaka Emura
    Keymaster

    owilsky wrote:
    I cannot tell my users to install 30 macros by hand and configure 20 keyboard shortcuts for them and create their own menus.
    If it cannot be done automatically, I will try to find out how to change the reg value. Can you tell me how the general format is? I only need the format for the macros, I do not need the “normal” menu commands.
    I guess there must be 3 parts per macro:
    – path and filename of macro
    – keyboard shortcut
    – as you said the length of the entry.
    – plus maybe a separator between different entries?

    It may be difficult but I know I can do it!

    Oliver

    Here is the source code for writing a menu to the registry. I know you will have a lot of questions, but I hope you can figure them out. Ignore T2E and CV_ACP.


    BOOL SaveMenuItem( CMenuArray& MenuArray, int nMenuKind, bool bDelete )
    {
    HKEY hKey = GetCommonRootKey();
    if( hKey == NULL ) return FALSE;
    BOOL bSuccess = FALSE;
    if( bDelete ){
    MyRegDeleteValue( hKey, aszMenu[nMenuKind] );
    bSuccess = TRUE;
    }
    else {
    int nLen;
    DWORD dwCount = sizeof( int );
    dwCount += sizeof(DWORD);
    CMenuArray::iterator it = MenuArray.begin();
    int nMax = 0;
    while( it != MenuArray.end() ){
    CV_ACP;
    dwCount += (DWORD)wcslen( T2E( it->m_szName ) ) * sizeof(WCHAR);
    dwCount += (DWORD)wcslen( T2E( it->m_szFile ) ) * sizeof(WCHAR);
    dwCount += sizeof( int ) + sizeof( UINT ) + sizeof( int ) + sizeof( int );
    nMax++;
    it++;
    }
    char* pBuf = new char[dwCount];
    if( pBuf != NULL ){
    char* p = pBuf;
    *((DWORD*)p) = SIGNATURE_MENU_LIST_2;
    p += sizeof( DWORD );
    *((int*)p) = nMax;
    p += sizeof( int );
    it = MenuArray.begin();
    while( it != MenuArray.end() ){
    *((UINT*)p) = it->m_nID;
    p += sizeof(UINT);
    *p = (char)it->m_nDepth;
    p += sizeof(UINT);
    CV_ACP;
    LPWSTR szE = T2E( it->m_szName );
    nLen = (int)wcslen( szE );
    *((int*)p) = nLen;
    p += sizeof( int );
    memcpy( p, szE, nLen * sizeof(WCHAR) );
    p += nLen * sizeof(WCHAR);

    szE = T2E( it->m_szFile );
    nLen = (int)wcslen( szE );
    *((int*)p) = nLen;
    p += sizeof( int );
    memcpy( p, szE, nLen * sizeof(WCHAR) );
    p += nLen * sizeof(WCHAR);

    it++;
    }
    ASSERT( p == pBuf + dwCount );
    bSuccess = ( p == pBuf + dwCount );
    WriteProfileBinaryReg( hKey, aszMenu[nMenuKind], (LPBYTE)pBuf, dwCount );
    delete [] pBuf;
    }
    }
    MyRegCloseKey( hKey );
    return bSuccess;
    }

    P.S. How about creating a popup menu using PopupMenu object in the macro?
    http://www.emeditor.com/help/macro/popupmenu/index.htm

    in reply to: Please make deployment of macros easier! #5683
    Yutaka Emura
    Keymaster

    owilsky wrote:
    OK, I managed to import all keyboard shortcuts by macro. No problem, thanks for that.

    BUT: Next problem: :-(
    In HKEY_CURRENT_USERSoftwareEmSoftEmEditor v3CommonMainMenu my changed main menu including some macros is saved, again with macro paths hard coded. :-x
    I guess it’s not possible to change the main menu per macro?

    I tried to decode the main menu entry, seems to be unicode, always ansi code in hex and then “00”.
    I tried to replace my old path with the new one in this hex field and that seemed to work great, but now I get a crash at offset 0003afb1 when I start EmEditor.
    Guess it’s not that easy :-(

    a. Is it possible to change the main menu per macro?
    b. If not, what’s the format of the MainMenu registry entry?

    Thanks for any info.
    Oliver

    You cannot change the macro path from the Registry. The Registry format also includes the length of each menu or command path, so it is not easy to change the Registry value. You should use the “Tools” > “Customize Menus” to change each menu item.

    in reply to: Please make deployment of macros easier! #5681
    Yutaka Emura
    Keymaster

    owilsky wrote:
    [But the ini file is saved in EmEditor’s folder in Program Files, right? And a normal user does not have the right to write into that folder, so he cannot save his settings into the ini file.

    That is true. I was assuming you might want to install EmEditor to an unrestricted folder.

    in reply to: More elegant handling of word wrap #5678
    Yutaka Emura
    Keymaster

    DavidA wrote:
    I’ve been a user of EmEditor for a while now and there’s always been one thing that niggles me – the way word wrap is implemented with indented text.

    I really like to keep all my notes as .txt files, which means a certain amount of indenting takes place so that I can distingush sections. The problem is that EmEditor doesn’t handle word wrap particularly well on these indented section and, instead of the second sentence beginning below the first line (as in Word), it starts at the beginning of the next line:

    e.g.

    In Emeditor:
    _______Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

    Better:
    ____Text Text Text Text Text Text Text Text Text Text Text Text Text Text
    ____Text Text Text Text Text Text Text Text Text Text Text Text Text Text

    (The underscores are meant to be a tab / blank space)

    I realise that EmEditor is a text editor, rather than a word processor, but other editors (e.g. TextPad) handle word wrapping much more elegantly.

    Any chance of this in EmEditor?

    Thanks,

    David

    I believe this can be set by checking the “Wrap Indent” checkbox in the Tab/Indent dialog box (Configuration Properties > General tab > Tab/Indent button).

    in reply to: Please make deployment of macros easier! #5677
    Yutaka Emura
    Keymaster

    owilsky wrote:
    Hi,

    This one is both a cry for help as well as a feature request:

    I created some kind of IDE out of EmEditor for our company.
    Therefor I created a lot of macros.
    Unfortunately because of the way EmEditor stores its configuration it is very difficult to deploy and update the macros on all machines:

    – First I install EmEditor
    – Then I import a .reg file containing the config that everybody should use
    – Then the problems begins: Our macros are stored in C:Documents and Settings[username]Application DataMy Macros.
    So you see: Every user has another folder where the macros are saved. So I wrote a tool to change the paths in “HKEY_CURRENT_USERSoftwareEmSoftEmEditor v3Macros”.
    Then I saw that the keyboard shortcuts are saved in a binary field in HKEY_CURRENT_USERSoftwareEmSoftEmEditor v3Config[Config Name]PIKM and that this binary field contains the absolute path in binary form —> arghhh!!!

    Is there an easier way to do this? (User PCs don’t have admin rights for working, so I prefer saving macros in profile folders because they are updated quite often)
    And please consider an easier way to store the configuration in upcoming versions.

    Thanks for any help,
    Oliver

    One option is use INI file settings, which use relative path, but if My Macro folder is under user profile (sucn as UsersJohnDocuments…), you will still have to fix each relative path.

    Another option is to use a macro, but this too can take some time. Just in case you want to try this option, I wrote the sample macro to start with:



    bAllConfigs = confirm( "Do you want to set keyboard in ALL configurations? Click Cancel if you want to set keyboard only in the current configuration." );

    if( bAllConfigs ){
    cfgs = new Enumerator( editor.Configs );
    for( ; !cfgs.atEnd(); cfgs.moveNext() ){
    cfg = cfgs.item();
    SetKeys( cfg );
    }
    }
    else {
    cfg = document.Config;
    SetKeys( cfg );
    }
    alert( "Keyboard set successfully!" );

    function SetKeys( cfg )
    {
    lst = cfg.Keyboard.List;
    // nKey is a virtual key for the shortcut.
    // nFlags is a combination of eeVirtualKey, eeShift, eeCtrl, and eeAlt. See the Macro Reference.
    // nCmd is the command ID for the macro (9216 through 9216 + 1023). You can use editor.QueryStringByID method to find the exact command ID.
    lst.Add( nKey, nFlags, nCmd );
    cfg.Save();
    }

    For the next major version, I will try to find a way to transfer the settings, possibly by adding something like \%MYMACRO_PATH\% environment, which can be included in the macro path, so the shortcut settings will be easily transferred to another PC.

    in reply to: Close main window by pressing ESC #5673
    Yutaka Emura
    Keymaster

    ujr wrote:
    Ah – yes! Thanks!
    I’ve assigned ESC to “Close All” which does what I want. Great!

    Nevertheless I would have expected a command “Exit All” or “Exit”, just like it appears on the file menu (I hope I haven’t overlooked it – I *did* double check). It’s probably not so important – but is there a difference between “Close All” and “Exit All”?

    “Close All” and “Exit All” are exactly the same.

    in reply to: Problem with Outline Text #5668
    Yutaka Emura
    Keymaster

    nut99 wrote:
    The “Outline Text” plugin can not show correctly such C functions written like the following style:

    void OnEvents(
    HWND hwndView,
    UINT nEvent,
    LPARAM lParam )
    {

    }

    It is outlined as “LPARAM lParam )”, not “void OnEvents( HWND hwndView, UINT nEvent, LPARAM lParam )
    “.

    In addition, can the plugin only show the sorted function name without input parameters and return value? It seems that the manner of ultraedit is clearer.

    I am working on that plug-in for improvements.

    If you would like, you can download FunctionList plug-in at
    http://jp.emeditor.com/modules/mydownloads/singlefile.php?cid=26&lid=222, but sorry for Japanese. Just make sure you specify the full path to ctags.exe in the first text box in the plug-in Properties.

    Yutaka Emura
    Keymaster

    johnadams wrote:
    As per the subject.
    Is there a way to retain Syntax Highligting and Font Formatting on Copy and Paste into MS Word 2007?

    You can use this plug-in:
    http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=190
    and open that HTML with Word.

    in reply to: Find in files matching random binary files #5666
    Yutaka Emura
    Keymaster

    bobince wrote:
    Curious error this. Am trying out Pro 7.00.4; never noticed this with previous bought versions but I don’t know the exact version when the behaviour might have been introduced.

    When doing a Find-in-files – with or without escape sequences, but no regexps – EmEditor finds many spurious matches of the search string (regardless of what it is) at random points in binary files such as images. Regexp search, on the other hand, is fine.

    Any ideas?

    I don’t know what the problem is, but you might want to check the opening Encoding. If you believe this is a bug of EmEditor, please send me the sample file (after zipped) I can reproduce this issue with the detail procedure at [email protected] . Thanks!

    in reply to: Exit All by ExecuteCommandByID #5654
    Yutaka Emura
    Keymaster

    owilsky wrote:
    Hi,

    is it possible to do a “File/Exit All” in a macro with ExecuteCommandByID? I didn’t find anything about it in the docs…

    If it is not possible, is there any other way to do this?
    I do not want to close the open files! I have set EmEditor to reopen the tabs when EmEditor restarts. I just want to exit EmEditor completely. “File/ Exit All” does exactly what I want, but I have to do that in a macro.

    Thanks,
    Oliver

    “Exit All” is the same as “Close All”. You can use
    editor.ExecuteCommandByID (4119);

Viewing 25 posts - 3,101 through 3,125 (of 3,680 total)