Forum Replies Created

Viewing 25 posts - 3,626 through 3,650 (of 3,658 total)
  • Author
    Posts
  • in reply to: trim empty lines #3915
    Yutaka Emura
    Keymaster

    In the Replace dialog box,

    Find: nnn
    Replace with: nn
    Check Use Escape Sequence

    This will do what you want.

    in reply to: Comment / Uncomment current line without selecting text? #3907
    Yutaka Emura
    Keymaster

    If you have EmEditor Professional, you can write a macro like this (JavaScript):

    var bEmpty = false;
    if( document.selection.IsEmpty ){
    editor.ExecuteCommandByID(4154); // Select line if not selected
    bEmpty = true;
    }
    editor.ExecuteCommandByID(4371); // Comment. Use 4372 for Uncomment.
    if( bEmpty ){
    document.selection.Collapse();
    }

    This macro can comment selected lines if selected, or comment the current line if not selected.

    Then you can customize menus to insert this macro to anywhere you would like.

    in reply to: Saving in Find in Files / Search plugin #3904
    Yutaka Emura
    Keymaster

    Thanks for pointing out!

    1. I reproduced your problem, and it is indeed different. For some reason, s+$ can match the last line of documents and one previous line from blank lines. Please use [[:blank:]]+$ instead, which should give you desired results. [[:blank:]] matches only horizontal white spaces while s can match both horizontal and vertical white spaces. I will take a look into this more closely, and see if I can fix this issue.

    2. Create a simple macro like this (JavaScript):

    document.HighlightTag = true;

    Run this macro after reloading a Find in Files result file.

    3. The search plug-in is somewhat premature since the source code is avaialble, and I am encouraging someone to extend this plug-in with more features. If no one is trying to develope the plug-in, I will consider doing that.

    4. 5. 6. 7. I will consider your requests.

    Thanks again!

    in reply to: Cannot installl M's TeX Helper 2 (32-bit) in EmEditor 6.002 #3902
    Yutaka Emura
    Keymaster

    I added mutual links to these pages. Thanks!

    in reply to: Cannot installl M's TeX Helper 2 (32-bit) in EmEditor 6.002 #3900
    Yutaka Emura
    Keymaster

    I fixed the library description, and added the Japanese package. Thanks!

    in reply to: EmEditor and encodings #3899
    Yutaka Emura
    Keymaster

    I had Save as … (encoding) commands in the main menu at a certain beta version, but some people (including me) found complicated, and even worse, deliberately chose a Save as … (encoding) command where they meant to reload with a correct encoding, and ruined existing files. That is why I hid these commands into the All Commands, but you can easily define your menus.

    Unfortunately, Save as UTF-8 without BOM is not in a command list, but if you had EmEditor Professional, you would be able to write a simple JavaScript macro like this:

    document.UnicodeSignature = false;
    document.Save();

    You would be able to assign this macro to a menu item, and insert the menu item to anywhere you would like.

    Thanks for your nice comments!

    in reply to: codepage autodetection #3896
    Yutaka Emura
    Keymaster

    No problem. For the rest of us, EmEditor already has a feature to auto-detect without displaying the result dialog box:

    First, select Properties for Current Configuration (or All Configurations) on the Tools menu, select File tab, and check Detect All checkbox. Second, select Customize on the Tools menu, and clear Always Show Detect All Result checkbox. Now you can open a file with Auto Detect but without the Detect All Result dialog box.

    in reply to: Cannot installl M's TeX Helper 2 (32-bit) in EmEditor 6.002 #3894
    Yutaka Emura
    Keymaster

    If that is true, I will have to add the Japanese MTex2 to the library, and will note both needed.

    in reply to: codepage autodetection #3891
    Yutaka Emura
    Keymaster

    Can you please send me a few Windows-1251 files or any files that can cause a problem (after zipped as .Zip) as an attachment. Please also write a list explaining which file should be opened as which encoding. My email address is [email protected]. I will need to repro your problem here to fix this issue. Thanks!

    in reply to: codepage autodetection #3889
    Yutaka Emura
    Keymaster

    You can disable the Auto Detect result dialog box:

    Select Customize on the Tools menu, select the File tab, uncheck Always Show Detect All Result check box.

    By default this is checked because the Auto Detection can make mistakes sometimes especially in small files. But if that is not a problem, you can uncheck this option. If you see a mistake, you can always reload the file as a correct encoding by double-clicking the encoding on the status bar.

    in reply to: close tabs with right click #3887
    Yutaka Emura
    Keymaster

    I might consider that. Thanks!

    in reply to: How to receive all update notifications by e-mail #3884
    Yutaka Emura
    Keymaster

    In the Forums, Notify me of any new posts (include full text in message) option is now available!

    in reply to: Search/Replace dialogs resizable #3883
    Yutaka Emura
    Keymaster

    Sure. :-)

    in reply to: % treated as a comment in tex mode. #3881
    Yutaka Emura
    Keymaster

    Yes, I think so. I will try to add a better solution.

    in reply to: change default input language #3879
    Yutaka Emura
    Keymaster

    You can open an IME by a particular configuration, but I don’t think there is any way to change the current input language. If this is an important option you need, I might consider that in future, possibly as a plug-in or a macro.

    in reply to: % treated as a comment in tex mode. #3878
    Yutaka Emura
    Keymaster

    You can remove \% from Line Comment field in Highlight (2), but then \% will not be recognized as a comment. Thanks for your comments!

    in reply to: Smart Quotes #3873
    Yutaka Emura
    Keymaster

    Actually, You can do those now:

    Select “Replace” on the Search menu (or press CTRL + H), Check “Use Regular Expressions”, and then:

    Eduate Quotes:


    Find: '(.*?)'
    Replace with: ‘1’

    Stupefy Quotes:


    Find:‘(.*?)’
    Replace with: '1'

    Or you can write macros like these (JavaScript):

    Eduate Quotes:


    document.selection.Replace("x27(.*?)x27","‘1’",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);

    Stupefy Quotes:


    document.selection.Replace("‘(.*?)’","x271x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);

    I will submit these macros into the library.

    in reply to: autocorrect supporting wildcards/regex #3872
    Yutaka Emura
    Keymaster

    Thanks for your request!

    in reply to: Open Documents Plugin #3869
    Yutaka Emura
    Keymaster

    Thanks again for following up! The tab bar is always on when tabs are enabled. This is the current specification. However, it many people ask this as an option, I might change the specification. Thanks!

    in reply to: Smart Quotes #3868
    Yutaka Emura
    Keymaster

    Thanks for following up your message. It is not hard for someone to create a plug-in to do smart quotes. Can you please clarify what educate quotes or stupefy quotes mean. Thanks!

    Yutaka Emura
    Keymaster

    I am glad it was solved! :-)

    Yutaka Emura
    Keymaster

    I will consider that. Thanks!

    in reply to: Comment / Uncomment current line without selecting text? #3863
    Yutaka Emura
    Keymaster

    It is a specification that text must be selected before you can select each command in Convert Selection sub menu. However, it is possible to make it an option if many users like that way.

    in reply to: new way to display text #3859
    Yutaka Emura
    Keymaster

    Thanks for a good idea! It might be possible by writing a plug-in.

    in reply to: simple saving of search, and search and replace jobs #3857
    Yutaka Emura
    Keymaster

    I will try to add a feature of just that. Thanks for your opinions.

Viewing 25 posts - 3,626 through 3,650 (of 3,658 total)