Forum Replies Created
- AuthorPosts
- Yutaka EmuraKeymaster
In the Replace dialog box,
Find: nnn
Replace with: nn
Check Use Escape SequenceThis will do what you want.
October 18, 2006 at 5:01 am in reply to: Comment / Uncomment current line without selecting text? #3907Yutaka EmuraKeymasterIf 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.
Yutaka EmuraKeymasterThanks 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!
October 16, 2006 at 11:37 pm in reply to: Cannot installl M's TeX Helper 2 (32-bit) in EmEditor 6.002 #3902Yutaka EmuraKeymasterI added mutual links to these pages. Thanks!
October 16, 2006 at 3:55 am in reply to: Cannot installl M's TeX Helper 2 (32-bit) in EmEditor 6.002 #3900Yutaka EmuraKeymasterI fixed the library description, and added the Japanese package. Thanks!
Yutaka EmuraKeymasterI 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!
Yutaka EmuraKeymasterNo 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.
October 15, 2006 at 3:07 am in reply to: Cannot installl M's TeX Helper 2 (32-bit) in EmEditor 6.002 #3894Yutaka EmuraKeymasterIf that is true, I will have to add the Japanese MTex2 to the library, and will note both needed.
Yutaka EmuraKeymasterCan 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!
Yutaka EmuraKeymasterYou 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.
Yutaka EmuraKeymasterI might consider that. Thanks!
Yutaka EmuraKeymasterIn the Forums, Notify me of any new posts (include full text in message) option is now available!
Yutaka EmuraKeymasterSure. :-)
Yutaka EmuraKeymasterYes, I think so. I will try to add a better solution.
Yutaka EmuraKeymasterYou 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.
Yutaka EmuraKeymasterYou can remove \% from Line Comment field in Highlight (2), but then \% will not be recognized as a comment. Thanks for your comments!
Yutaka EmuraKeymasterActually, 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.
Yutaka EmuraKeymasterThanks for your request!
Yutaka EmuraKeymasterThanks 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!
Yutaka EmuraKeymasterThanks 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!
October 5, 2006 at 4:04 pm in reply to: Disappeared: Save as encoding Central european(DOS) – CP852 #3865Yutaka EmuraKeymasterI am glad it was solved! :-)
October 5, 2006 at 4:03 pm in reply to: Please allow selecting multiple files in the File Open dialog #3864Yutaka EmuraKeymasterI will consider that. Thanks!
October 5, 2006 at 3:14 pm in reply to: Comment / Uncomment current line without selecting text? #3863Yutaka EmuraKeymasterIt 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.
Yutaka EmuraKeymasterThanks for a good idea! It might be possible by writing a plug-in.
Yutaka EmuraKeymasterI will try to add a feature of just that. Thanks for your opinions.
- AuthorPosts