Forum Replies Created

Viewing 25 posts - 2,951 through 2,975 (of 3,693 total)
  • Author
    Posts
  • in reply to: Recover files #6224
    Yutaka Emura
    Keymaster

    thb wrote:
    Hi

    Sorry to say that if I open a file type in somee text then kill my machine, and restart it and then open emeditor I do not get the chance of recover. Is there a setting somewhere I might have changed.

    Best Regards

    Thorbjorn

    There are no settings. How exactly did you kill your machine? If you pull out the plug of your machine suddenly, there will be no chance for any programs to save the current state.

    in reply to: Recover files #6220
    Yutaka Emura
    Keymaster

    thb wrote:
    Hi

    In Ultraedit if the computer crashes or is turned of while having open files in the editor. The editor offers you the chance to recover those files when editor is restarted. This would be extremely nice to have in the Emeditor.

    it might already be there I just haven’t found it yet.

    Best Regards

    Thorbjorn

    That feature is already in EmEditor. You will get this screen when restarting after a crash.

    http://www.emeditor.com/images/emeditor7_auto_recovered.png

    in reply to: Try to get "()" while typed "(" #6215
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    Hi,
    I just tried to write a macro to do this:

    document.selection.CharLeft(true,1);
    if (document.selection.Text == "{")
    {
    document.write ( "{}" );
    }
    if (document.selection.Text == "[)
    {
    document.write ( []" );
    }
    if (document.selection.Text == "(")
    {
    document.write ( "()" );
    }
    if (document.selection.Text == "'")
    {
    document.write ( "''" );
    }
    if (document.selection.Text == """)
    {
    document.write ( """" );
    }
    shell.SendKeys( "{LEFT}" );

    I type “(“, run this macro, and get “()”, with the cursor between “(” and “)” .
    I assign the “(” key to this macro, but I get nothing when I typed “(“. Is there a way to let Emeditor insert this hotkey before running this macro ? Or how can a macro get the value of the hotkey it’s assigned with?

    And anyone got a better idea to do this ?

    PS. I also tried to improve this macro. In C, it might be better to insert “{n}” rather than just “{}”, So in short, how to let macros to be more “language specified”?

    Thanks!

    The following example shows how to find the shortcut for the macro you have just run.


    for( nID = 9216; nID <= 9216 + 1023; nID++ ){
    str = editor.QueryStringByID( nID );
    if( str == ScriptFullName ){
    break;
    }
    }

    bFound = false;
    list = new Enumerator( document.Config.Keyboard.List );
    for( ; !list.atEnd(); list.moveNext() ){
    item = list.item();
    if( item.Command == nID ){
    virtual = item.Flags & eeVirtualKey;
    shift = item.Flags & eeShift;
    ctrl = item.Flags & eeCtrl;
    alt = item.Flags & eeAlt;
    str = "The shortcut key = " + item.Key;
    if( virtual ){
    str += "n Virtual Key";
    }
    if( shift ){
    str += "n with SHIFT";
    }
    if( ctrl ){
    str += "n with CTRL";
    }
    if( alt ){
    str += "n with ALT";
    }
    alert( str );
    bFound = true;
    }
    }

    if( !bFound ) {
    alert( "No shortcut found" );
    }

    Use

    document.ConfigName; 

    to find the current configuration.

    in reply to: Product version discrepancy #6213
    Yutaka Emura
    Keymaster

    TheXman wrote:
    I created an utility that checks for newer versions of applications that I use. The current version of EmEditor, according to the website, is v7.02. However, if you check the version in the Emeditor.exe file’s header, you will see v7.1.1.0 in all of the version descriptions. The website has no reference to a 7.1.x.x version. It would help if the information on the website at least partially matched any of the version info in the EmEditor.exe file’s header. Is this something that is possible?

    Xavier

    I realize this. I will be more careful on next versions. Thanks!

    in reply to: Editing ebooks. Need some help. #6208
    Yutaka Emura
    Keymaster

    lucifuge wrote:
    I am editing ebooks that have been transferred from one format to another. The problem being that alot of the sentences have been broken during the transfer. I have alot of them that have a new line and three spaces where they should not be. IE:
    He affixed the gleaming medal to his breastplate and,
    reaching once more within the box, withdrew a green
    disc inlaid with golden filigree.

    I need to clean this up. Remove the three spaces and return them to one line with the proper spacing in between.

    So if someone could help me out by regex in finding three spaces with a lower case letter and deleting two spaces and the paragraph line it would be nice.

    Luci Fuge’

    OK. Been playing a bit. What I have now seems to almost get me there but wont tell the difference between a uppercase letter or a lowercase letter.
    rs{3,}[a-z]

    To remove new lines:
    Select All by pressing CTRL + A, and then right click, and then select “Convert Selection” > “Join Lines”.

    I don’t know where three spaces are in your example. If you just want to replace three spaces with one space, use the Replace command (CTRL + H).

    in reply to: stop infinite loop #6197
    Yutaka Emura
    Keymaster

    green wrote:
    Dear Yutaka:

    thank you for your reply.

    I have seen solution by other softwares:

    One is scite for windows
    https://sourceforge.net/project/showfiles.php?group_id=2439&package_id=5662&release_id=584805

    tools > stop executing

    Another is ultraedit. When executing java, the command prompt will be activated so program can be stopped with ctrl_c

    I am pretty sure you’ll come up with a brilliant solution.

    regards,
    green

    Version 7.5 Alpha 10 allows you to terminate the tool job. If you reset keyboard properties, the default shortcut key is CTRL+BREAK.

    in reply to: about column maker #6196
    Yutaka Emura
    Keymaster

    ljf_emedit wrote:
    I hope EM can add the function of setting a fixed column maker in the new version :-)

    Please be more specific about the fixed column maker. There is an indent guide feature in the new version (7.50 alpha).

    in reply to: Need help in useing EmEditor macros #6192
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    I have trouble in useing this macro “code2html”
    downloaded here:
    http://www.emeditor.com/files/code2html-macro-zip/

    Every time I try to run it, I end up getting the error message:

    Constant indispensable
    	file:    D:Program FilesEmEditorPlugInscode2html.vbee
    	line:   145

    The same thing happens when I try to run the “AutoCompleteFindLite” macro. Other macros works fine. Please help me! What’t wrong with my Emeditor?

    What version of EmEditor are you using? Are you using the latest version (7.02 release or 7.5 alpha)?

    in reply to: Quotes Matching #6191
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    Currently, Emeditor supports “Highlight Matching Parentheses/Brackets”, however, in many situations, quotes may also be an issue, too.
    Would you please consider adding Em the abaility to not only highlight matching parentheses and brackets, but also matching quotes?

    You can check Single Quotation Marks and Double Quotation Marks to highlight entire string inside the quotation marks.

    in reply to: Multiple Tabbed Window Instances #6183
    Yutaka Emura
    Keymaster

    danderson wrote:
    Is there a way to open multiple instances of tabbed windows? It appears that either I don’t use tabs or I am limited to a single window instance. I would love to be able to open multiple window instances with tabs. Thanks.

    Yes, you can create new groups. Just drag and drop one tab to outside of the window.

    in reply to: EmEditor Professional 7.50 alpha 9 #6180
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    I think you are right.
    Alpha 9 can’t edit “Null Column”.
    In fact, you can select “Null Column”, but after selection, you can’t input anything. While Alpha 8 can.

    You are right, it will be fixed on next alpha version. Thanks!

    in reply to: stop infinite loop #6179
    Yutaka Emura
    Keymaster

    green wrote:
    after compile java, when execute, i want to stop the infinite loop, what can i do?

    e.g.

    class Lo
    {
    public static void main(String[] args)
    {
    for(int i = 1; i > 0; i++)
    {
    System.out.println(“hi”);
    }
    }
    }

    in this case, the loop will print hi nonstop since the condition always fulfill

    when execute with command prompt, i can stop it with ctrl_c

    but when execute with emeditor, what can i do to stop it?
    it doesn’t mean only infinite loop, but how to stop java program during execution with emeditor …

    thx.

    Currently, you will need to end the process from Windows Task Manager. I will research whether EmEditor can send the signal equivalent to Ctrl+C. Thank you!

    in reply to: One selection on Context Menu not working properly #6175
    Yutaka Emura
    Keymaster

    slbuben wrote:
    Version 7.02 Pro 64 bit

    I have a context menu item for “Emeditor”, but nothing happens when I select it. “Open with Emeditor” works, but not “Emeditor”. Double clicking associated files opens them correctly, as well.

    I don’t know if the context menu worked properly upon initial installation, or not. Has anyone else reported a problem?

    I have tried repairing the software by reinstalling and choosing “repair”, but I have not removed the software completely and reinstalled. I thought before I went that far that I would check to see if it might be a known issue.

    Thank you for any help that can be provided !!

    I can’t reproduce this issue on my Windows Vista 64-bit machine, but try this: Go to Customize under the Tools menu, select Shortcuts tab, click “More Shortcuts” button, uncheck “Add a shortcut to the Context Menu on Explorer”, click OK. Select “More Shortcuts” button again, check “Add a shortcut to the Context Menu on Explorer”, click OK.

    in reply to: editor.ReplaceInFiles help #6174
    Yutaka Emura
    Keymaster

    lwkyy wrote:

    editor.ReplaceInFiles( "<a href=([^<]*)>test</a>", "OK了", "*.html", eeFindReplaceRegExp, eeEncodingSystemDefault, "", "" );

    EmEditor Macro Error:
    Users operation has been cancelled.

    Emeditor V7.02

    I am sorry but I couldn’t reproduce your issue.

    in reply to: stop infinite loop #6173
    Yutaka Emura
    Keymaster

    green wrote:
    hi all,

    is there a way to stop an infinite loop when using emeditor to compile java?

    thx

    What exactly do you mean by infinite loop?

    in reply to: EmEditor Professional 7.50 alpha 9 #6172
    Yutaka Emura
    Keymaster

    dreik wrote:
    And is there any chance to revert back to Shift+F4/F4 ‘macros record’/’macros play’ key combination?

    You can always change shortcuts from Keymap under the Help menu.

    in reply to: EmEditor Professional 7.50 alpha 8 #6162
    Yutaka Emura
    Keymaster

    Kalum wrote:
    Maybe something odd.

    When I do a right click for context menu in version 7.50 alpha 8 it show up slowly like it is fading (Version 7.02 is faster)

    Is this effect supposes to be in version 7.50?

    I don’t see any delay. Do you use any plug-ins or macros associated with any events?

    in reply to: EmEditor Professional 7.50 alpha 8 #6161
    Yutaka Emura
    Keymaster

    joymonkey wrote:
    I use “Tools -> plug-ins -> diff”, when I change width of the “diff window” after diff documents, it’s jump a “Out of Memory” of window, why?

    I use version: EmEditor Professional 7.50 alpha 8

    Thank you ! :-D

    This will be fixed on alpha 9. Thanks!

    in reply to: EmEditor Professional 7.50 alpha 8 #6160
    Yutaka Emura
    Keymaster

    psa1999 wrote:
    Thanks..
    I want to make VI Editor Emulation Plugin.
    But I can’t receive ESC key code.
    And I can’t get/set overwrite mode.
    Can you help me?

    You can use EP_PRE_TRANSLATE_MSG message to receive WM_KEYDOWN message with ESC key. In etlframe.h, you will define PreTranslateMessage().

    Editor_QueryStatus( hwnd, EEID_INSERT, &bChecked );
    can determine Insert or Overwrite mode.

    in reply to: DOS/UNIX/MAC file format displayed next to encoding type #6156
    Yutaka Emura
    Keymaster

    bsmith wrote:
    self explanatory really – and highly useful when working in a multi-platform environment.

    This feature will be included in the next alpha version. Thanks!

    in reply to: [BUG REPORT]TAB indent issues #6155
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    Please paste the following Strings to a blank file in Emeditor:

    b	this is a line
    B works fine until this line
    cx oops...

    Now I want to incert a “Tab” after each “Tab”. So i put the cursor before “this is a line”, hold alt and select to line “oops…”, you may notice Emeditor highlight all the “Tab”s. i hit “Tab” and expecting the result :

    b		this is a line
    B works fine until this line
    cx oops...

    However, I got this:

    bt	his is a line
    Bw orks fine until this line
    cx oops...

    if there is no “cx”, this function works fine.

    This will be fixed in the next alpha or beta version. Thanks!

    in reply to: Enhance Emeditor's abaility on monitoring clipbord? #6154
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    I use text editor to collect data.
    With emeditor i have to copy something, switch to em and paste then switch back to continue my copying. This is really annoying in some conditions.
    Maybe Emeditor can be enhanced in this aspect by builting more clipbord instead of just one, or at least please add support to auto-paste text in windows’s clipbord, so I can continue my data collecting work without having to switch to paste in Emeditor.
    Thanks :-)

    You can do many clipboard functions using macros or plug-ins.

    To copy the selection automatically, write a macro:


    clipboardData.setData("Text", document.selection.Text);

    Then in the Customize Macros dialog, select this macro in the list, check “Runs at Events”, click “Events” button, check “Selection Changed”.

    in reply to: some questions #6130
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    would you consider adding these features?

    3. This is now supported in the recent version of 7.5 alpha. Please try that from the Beta forum. Thanks!

    I’m now useing 7.5 alpha 4, which seems not working at all. So which version should i update to? Or some option I need to change?

    The most recent version is alpha 8.

    in reply to: some questions #6128
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    1. Can I select multiple lines of text in this editor?
    for example, select first piece of text, then hold Ctrl to select other pieces of non-consecutive text.

    2. it seems in “box editer”mode , drag text does not work?
    hold “alt” and select some thing, you can’t drag them. While you can do so after normal selecting.

    3. “tab” not always does what you want
    a b
    a b
    a b
    I try to add “tab” before every “b”, so i hold alt and select all the “b”s, then “tab”, what i want was:
    a [tab]b
    a [tab]b
    a [tab]b
    but I got:
    [tab]a b
    [tab]a b
    [tab]a b

    1. No.

    2. Correct.

    3. This is now supported in the recent version of 7.5 alpha. Please try that from the Beta forum. Thanks!

    in reply to: Scrolling in long documents #6125
    Yutaka Emura
    Keymaster

    protovaffe wrote:
    In many programs (different web browsers, TotalCmd, Office etc) I can click my mouse wheel to get a scroll icon and move my pointer around to scroll inside the document. I think this really helps when you’re trying to get a quick overview of a document or searching for a certain chunk of code.

    I wonder if this is something that can and will be implemented in EmEditor?

    This is now implemented on Version 7.5 alpha 8.

Viewing 25 posts - 2,951 through 2,975 (of 3,693 total)