Forum Replies Created

Viewing 25 posts - 3,551 through 3,575 (of 3,642 total)
  • Author
    Posts
  • in reply to: Open – File Type Annoyings #4068
    Yutaka Emura
    Keymaster

    If you select All Files (*.*) once, then next time you bring up the Open dialog box, All Files (*.*) should be pre-selected. Do you still have this issue?

    in reply to: Do not ask to reload files Changed by Another Program? #4067
    Yutaka Emura
    Keymaster

    You can change settings from Properties > File tab > Changed by Another Program drop-down list.

    in reply to: Email response delayed due to blackout #4066
    Yutaka Emura
    Keymaster

    Update (December 19, 2006)
    The power service is now restored after 4-day blackout. We are now back to normal. Thanks for your cooperation!

    in reply to: remove line using "find in files" #4062
    Yutaka Emura
    Keymaster

    The regular expression is correct if the Keep Modified Files Open is on. However, if the Keep Modified Files Open is off, you must use /r/n for a new line. So the regular expression should be

    IFs{1}EXISTS.+rn

    (if the Keep Modified Files Open is off in the Replace in Files dialog box).

    See Also How to Specify New Lines

    in reply to: Autocomplete enhancement #4061
    Yutaka Emura
    Keymaster

    Actually, you can copy a plug-in to another file and rename it like AutoComplete2.dll, and then you can set Properties for each one with unique configuration & .eac file.

    in reply to: Missing function in autocomplete.h #4056
    Yutaka Emura
    Keymaster

    First of all, why do you still use EmEditor 5? You should use the latest version of EmEditor.

    That assertion at line 331 is ASSERT_STRICT, and happens only when used with v5. You can disable this assertion by undefining TEXT_V5 from your product settings.

    in reply to: How to set font globally? #4052
    Yutaka Emura
    Keymaster

    Select Properties for All Configurations under the Tools menu, select Display tab, click Font button, click Select All button, and click Change button under Display Font.

    To change a particular color for XML files, open XML properties, and go to Display tab.

    in reply to: Display Return Method In Statusbar #4047
    Yutaka Emura
    Keymaster

    If you check Character Code at Cursor checkbox in the Status tab of the Customize dialog box, and when the cursor is at end of any line, you will see 0D+0A (CR+LF) or 0D (CR only) or 0A (LF only). You can also check Show CR and LF with Different Marks in the Marks tab of Properties to distinguish the return types. Since each line can have different return types in EmEditor, this is how EmEditor displays the return types for each line.

    To clarify how the Save As dialog works, it displays the current return method only when the entire document contains the same return method. If mixed return methods are used, No Change will be first selected.

    However, I might think about adding the entire document’s return methods (CR only, LF only, CR+OF, or mixed) in the status bar. :-)

    in reply to: Outline question #4046
    Yutaka Emura
    Keymaster

    Actually, you can enable the Outline Guide (Code Folding) while hiding the Outline custom bar. In the Outline properties, clear the Turn off Outline Guide when Custom Bar is not displayed checkbox.

    in reply to: Missing function in autocomplete.h #4042
    Yutaka Emura
    Keymaster

    I now updated the source code in the library
    http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=6&lid=99
    to include newer plug-in.h and etlframe.h files. Thanks!

    in reply to: Autocomplete import every EMEditor session? #4040
    Yutaka Emura
    Keymaster

    That’s strange. Do you have the following key in the Registry?

    HKEY_CURRENT_USERSoftwareEmSoftEmEditorPlugInsAutoComplete

    If this key, the AC value in REG_BINARY format is the saved .eac file. Do you have this value?

    in reply to: opening urls in text file… #4031
    Yutaka Emura
    Keymaster

    Did you install or uninstall any webbrowser recently? You might want to install a recent version of a browser, and make sure it is set as the default browser. You can also select Set Program Access and Defaults in the Start menu > All Programs, and make sure your favorite browser is set as the default browser.

    in reply to: Boolean Search in Files #4030
    Yutaka Emura
    Keymaster

    Searching for regular expression

    (cat|mouse)

    can find cat OR mouse.

    I am not sure what you mean by “cat but not mouse”. It donesn’t make sense to me.

    See http://www.emeditor.com/help/howto/search/search_regexp_syntax.htm
    for more information about regular expression syntax.

    in reply to: Selected configuration = saving with needed *.ext #4026
    Yutaka Emura
    Keymaster

    This Save as type drop-down list box in the Save As dialog box remembers the last seleciton. So if you select HTML (*.htm) once, then next time you save a new file, you will get the HTML initially selected.

    in reply to: Real Snippets (like in TextMate) #4024
    Yutaka Emura
    Keymaster

    I have not seen .eac files for Ruby and Rails before. You can define those by yourself by copying other files.

    in reply to: ? How to reduce file size #4021
    Yutaka Emura
    Keymaster

    Here is JavaScript macro to split the currently active file by the same number of lines, in this case, 1000 lines. You can change it to any number of lines. The result files will be saved as “1.txt”, “2.txt”, “3.txt”, … in this folder. As you see in the comment, you might need to set the root folder, in this case C:Test, and this folder must already exist. I hope this helps!


    if( !editor.EnableTab ){
    editor.EnableTab = true;
    alert( "Please run this macro again." );
    Quit();
    }

    sPath = "C:Test"; // Set the root folder where you want to save the split files. It must already exist.
    // The result files will be save as "1.txt", "2.txt", "3.txt", ... in this folder.
    // If the same file names already exist, these files will be overwritten!
    i = 1;
    Redraw = false;
    while( 1 ) {
    docSearch = editor.ActiveDocument;
    editor.NewFile();
    docResult = editor.ActiveDocument;
    docSearch.Activate();
    docSearch.selection.StartOfDocument();
    docSearch.selection.LineDown( true, 1000 ); // Number of lines for each split file to contain
    sLine = docSearch.selection.Text;
    if( sLine == "" ){
    docResult.Close();
    break;
    }
    docSearch.selection.Delete(1);
    docResult.Activate();
    docResult.selection.Text = sLine;
    docResult.Save( sPath + i + ".txt" );
    i++;
    docResult.Close();
    docSearch.Activate();
    }
    Redraw = true;

    :-)

    in reply to: ? How to reduce file size #4018
    Yutaka Emura
    Keymaster

    Before I can write a macro for you, does the split between two files need to be at a new line (between paragraphs), between words, or anywhere?

    in reply to: Find Up/Down wrap option #4016
    Yutaka Emura
    Keymaster

    You can click Move to Start/End of Document in the Find dialog box.

    in reply to: Real Snippets (like in TextMate) #4012
    Yutaka Emura
    Keymaster

    In that case, you might want to try Auto Complete plug-in.

    in reply to: Add a Lock icon for a readonly file in Tabs #4010
    Yutaka Emura
    Keymaster

    I have also received that request before. I might consider it. Thanks!

    in reply to: How about a column marker? #4009
    Yutaka Emura
    Keymaster

    You can see the border by changing the background color of Outside of regions. Go to Properties, select Display, and select Outside of regions in the Specify Part list, click Background Color, and select a different color such as gray.

    Column mode can be triggered by CTRL + SHIFT + F8 although the behavior may be somewhat different from other editors.

    in reply to: Delete between bookmarks #4006
    Yutaka Emura
    Keymaster

    You can use the following macros (JavaScript):


    // Delete lines between bookmarks
    bSuccess = false;
    if( document.selection.NextBookmark() ){
    y1 = document.selection.GetActivePointY( eePosLogical );
    if( document.selection.NextBookmark() ){
    y2 = document.selection.GetActivePointY( eePosLogical );
    document.selection.SetActivePoint( eePosLogical, 1, y1, false );
    document.selection.SetActivePoint( eePosLogical, 1, y2, true );
    document.selection.Delete(1);
    bSuccess = true;
    }
    }
    if( !bSuccess ){
    alert( "Cannot find bookmarks. The cursor position must be above both bookmarks before you run this macro." )
    }

    // Copy lines between bookmarks
    bSuccess = false;
    if( document.selection.NextBookmark() ){
    y1 = document.selection.GetActivePointY( eePosLogical );
    if( document.selection.NextBookmark() ){
    y2 = document.selection.GetActivePointY( eePosLogical );
    document.selection.SetActivePoint( eePosLogical, 1, y1, false );
    document.selection.SetActivePoint( eePosLogical, 1, y2, true );
    document.selection.Copy( eeCopyUnicode );
    bSuccess = true;
    }
    }
    if( !bSuccess ){
    alert( "Cannot find bookmarks. The cursor position must be above both bookmarks before you run this macro." )
    }

    // Cut lines between bookmarks
    bSuccess = false;
    if( document.selection.NextBookmark() ){
    y1 = document.selection.GetActivePointY( eePosLogical );
    if( document.selection.NextBookmark() ){
    y2 = document.selection.GetActivePointY( eePosLogical );
    document.selection.SetActivePoint( eePosLogical, 1, y1, false );
    document.selection.SetActivePoint( eePosLogical, 1, y2, true );
    document.selection.Cut();
    bSuccess = true;
    }
    }
    if( !bSuccess ){
    alert( "Cannot find bookmarks. The cursor position must be above both bookmarks before you run this macro." )
    }

    in reply to: Selecting text with ctrl+shift #4002
    Yutaka Emura
    Keymaster

    It is not possible unless you write a macro and assign that macro to CTRL+SHIFT+Right or Left.

    in reply to: How about a column marker? #4001
    Yutaka Emura
    Keymaster

    I am not sure what you mean by column maker. You should explain more in details or draw a picture.

    in reply to: button "Save as" #3997
    Yutaka Emura
    Keymaster

    This is a JavaScript macro to permanently delete and close the current document. I don’t know how to move a file to the Recycle Bin.


    if( document.FullName != '' ){
    sPath = document.FullName;
    if( confirm( "Are you sure you want to delete " + sPath + "?" ) ){
    fso = new ActiveXObject( "Scripting.FileSystemObject" );
    fso.DeleteFile( sPath );
    document.close();
    }
    }

Viewing 25 posts - 3,551 through 3,575 (of 3,642 total)