Forum Replies Created
- AuthorPosts
- October 7, 2015 at 4:25 am in reply to: Option to adjust the Date/Time format (Edit > Insert > Time and Date) #20370StefanParticipant
Hi Yutaka.
WOW, thanks, but…
System default:
10:06 07.10.2015
User adjustment, leads to Time Date order:
10:07:13 2015-10-07
User wanted order (Date Time) is not possible:
2015-10-07 10:07:13
Try with “date” field only (yyyy-MM-dd HH:mm:ss)
is not working AND leads to a leading space:
2015-10-07 HH:mm:ss
How can I use Date first, Time second? > 2015-10-07 10:07:13
May I suggest to provide ONE single Date-Time field only please,
where the user can enter the whole string as he needs, like:
Date/Time Format———————
[_] Use System Format
[yyyy-MM-dd, dddd HH:mm:ss ]v]
————————————–
Thank you for making EmEditor.August 24, 2015 at 4:57 am in reply to: Option to adjust the Date/Time format (Edit > Insert > Time and Date) #20326StefanParticipantHi Yutaka,
thank you very much for your reply.
As you may be aware already, I on my own know how to craft such scripts.
(https://www.emeditor.com/forums/topic/wish-date-day-date-month-date-year-date-hour-date-min/)
But that is not very user friendly and too complicated for average user.
(Also, if one would use a script, that menu item would become useless and only waste space)
And I can hardly imagine that the implementation of such (absolutely default) feature
would bloat EE that much and take that much space on executable and settings store?
But it’s your decision. I can only point you to need improvements from my POV.
(But inserting the default format like “13:53 24.08.2015” is useless for me, so I will always use a macro for that)
Anyway…
Thanks for making EmEditor !StefanParticipantThe extension has nothing to do with the content. It had could be named UserDic.TXT also.
But the author decided to make it look more “magic” and/or mark it as “special” file that way, so the user leave it alone.StefanParticipantHi, you can try “Quick Launch” tool for that:
“Tools > All Commands > Tools > Quick Launch”
Type in wanted shortcut, like “ctrl” plus “+”-sign [plus wanted letter]Something like ctrl+f4 or ctrl+L, or ctrl+shift+L … and wait an second, till the list is filtered.
What to type in, depend on your language.
For English you can type “ctrl”, “shift” and “alt”. Also “End”, “Home”, “Del”, “Back”, F1, F2…etc
For German that would be “strg”, “umschalt” and “alt”. Also “Ende”, “Pos1″, Entf”, “Rück”,…. etcStefanParticipantHi Bob,
you can search any web page by utilizing g00gle, best with key word “site:”Like:
sticky vertical site:emeditor.com/help/
user dictionary site:emeditor.com/StefanParticipant(((just search with g00gle))) :
https://www.emeditor.com/forums/topic/export-language-spelling-files-with-new-words/
The user dictionary is saved in %APPDATA%\Emurasoft\EmEditor\Spell\UserDic.bin as UTF-16LE without signature.
–
Or for portable mode: …\your path\to\EmEditor\AppData\Spell\UserDic.bin
StefanParticipantYou can use any command line tool, like “HTML Tidy” (http://tidy.sourceforge.net/)
How-toDownload, unpack (I have a sub folder “Tools” in my EmEditor folder)
and add a EmEditor Tool:
———————————————————————
Tools > External Tools > Customize Tools > New
Title: HTML Tidy -xml
Command: .\Tools\HTMLTidy\tidy_(25mar2009)\tidy.exe
Arguments: -xml -i -q “$(Path)”
[X] Use Output Bar
Input: Document
Output: Replace Document
OK
OK
———————————————————————For example see for more:
http://tidy.sourceforge.net/docs/tidy_man.html
http://xmlwriter.net/user_tools/tidy.shtml(Currently I don’t know how to just replace the document without opening the output bar ???)
Open your file. run the new tool, close Output bar, done.
HTH? ;DStefanParticipantThanks Yutaka, that works.
If one don’t know where to find that commands, he may want to follow this steps:
Start “Tools > All Commands > Tools > Quick Launch”
Search for “next cell”
Right click “Next Cell” > choose “Properties”
You will see Configuration dialog: Tab:Keyboard / Category:Edit / Command:Next Cell
Here you can assign the wanted keyboard key-combination.
Please note that that may be the configuration for ONE file type only (as e.g. *.txt or *.csv, or what ever you had currently open).
If you want to add a shortcut to another file-type, or to common configuration,
then close the dialog and open the wanted one from “Tools > Properties for ??? Configuration”
HTH?StefanParticipantOf course, now you explain it, the feature description makes sense. Now I feel silly.
Thank you.StefanParticipantWhat is “””Adjust Separator Positions Automatically””” good for? What does this feature?
StefanParticipantEncrypt-DEcryption.jsee v0.01 – EmEditor 15 – 2015-06-26 by Stefan
//Encrypt-DEcryption.jsee v0.01 - EmEditor 15 - 2015-06-26 by Stefan WshFSO = new ActiveXObject( "Scripting.FileSystemObject" ); strFullName = document.FullName; if(strFullName==""){ alert("Sorry, we don't work on non-existent document. Please save it first.\n\nScript quits here."); quit(); } strPath = fPathName(document.FullName); strName = document.Name; strBase = fBaseName(strName); strExte = fNameExte(strName); strPaBa = strPath+"\\"+strBase; strNewName = strPath+ "\\" + strBase + "_Backup." + strExte; strEEFolder = fPathName(editor.FullName); strDecryptedName = strPaBa; if(strExte != "EEE") { vUserAnswer = confirm("Seems not to be an encrypted file,\nor at least no EEE Extension?\n\nStill continue?"); if(!vUserAnswer) quit(); } if (!document.Saved){ alert("Sorry, we don't work on un-saved document.\nPlease save it first.\n\nScript quits here."); quit(); } strDecryptedName = prompt("Save decrypted file as:", strDecryptedName); if(WshFSO.FileExists(strDecryptedName)) { vUserAnswer = confirm("Already existend. Overwrite?\n\n"+strDecryptedName); if(!vUserAnswer) quit(); } /* Need thirs-party utility: MySecret Blowfish Encryption Utility - Version 3.1.1 Released 9 June 2007. Freeware command-line encryption utility - http://www.di-mgt.com.au/mysecret.html Copyright (C) 2002-7 DI Management Services Pty Limited ABN 78 083 210 584 Sydney, Australia. www.di-mgt.com.au. All rights reserved. */ //MySecret -d -p "my pass phrase" -i infile -o outfile //-e|-d force Encrypt/Decrypt pwd = prompt("Pass phrase to decrypt:",""); if(!pwd) quit(); cmd = strEEFolder + "\\Tools\\MySecret.exe -d -p " + pwd; cmd = cmd + " -i " + strFullName + " -o " + strDecryptedName; WshShell = new ActiveXObject( "WScript.Shell" ); WshShell.Run(cmd); sleep(500); if(WshFSO.FileExists(strDecryptedName)) { editor.NewFile(); //document.close(); //close current encrypted file editor.OpenFile(strDecryptedName); }else{alert("Error. "+strDecryptedName+" not found." );} //-------------------------------- function fPathName(str) { if(str.lastIndexOf("\\") != -1) path = str.substring(0, str.lastIndexOf("\\")); return path; } function fBaseName(str) { if(str.lastIndexOf(".") != -1) base = str.substring(0, str.lastIndexOf(".")); return base; } function fNameExte(str) { if(str.lastIndexOf(".") != -1) exten = str.substring(str.lastIndexOf(".")+1); return exten; }
StefanParticipantSomething like this I had in mind:
Encrypt-Encryption.jsee v0.01
//Encrypt-Encryption.jsee v0.01 - EmEditor 15 - 2015-06-26 by Stefan WshFSO = new ActiveXObject( "Scripting.FileSystemObject" ); strFullName = document.FullName; if(strFullName==""){ alert("Sorry, we don't work on non-existent document.\nPlease save it first.\n\nScript quits here."); quit(); } if (!document.Saved){ alert("Sorry, we don't work on un-saved document.\nPlease save it first.\n\nScript quits here."); quit(); } strPath = fPathName(document.FullName); strName = document.Name; strBase = fBaseName(strName); strExte = fNameExte(strName); strPaBa = strPath+"\\"+strBase; strNewName = strPath+ "\\" + strBase + "_Backup." + strExte; strEEFolder = fPathName(editor.FullName); if(strExte=="EEE") { vUserAnswer = confirm("*.EEE file detected. Already encrypted? Encrypt it again?"); if(!vUserAnswer) quit(); } strEncryptionName = strFullName + ".EEE"; strEncryptionName = prompt("Save encrypted file as:", strEncryptionName); if(!strEncryptionName) quit(); if(WshFSO.FileExists(strEncryptionName)) { vUserAnswer = confirm("Already existend. Overwrite?\n\n"+strEncryptionName); if(!vUserAnswer) quit(); } /* Need thirs-party utility: MySecret Blowfish Encryption Utility - Version 3.1.1 Released 9 June 2007. Freeware command-line encryption utility - http://www.di-mgt.com.au/mysecret.html Copyright (C) 2002-7 DI Management Services Pty Limited ABN 78 083 210 584 Sydney, Australia. www.di-mgt.com.au. All rights reserved. */ //MySecret -e -p "my pass phrase" -i infile -o outfile //-e|-d force Encrypt/Decrypt pwd = prompt("Pass phrase to encrypt:",""); if(!pwd) quit(); cmd = strEEFolder + "\\Tools\\MySecret.exe -e -p " + pwd; cmd = cmd + " -i " + strFullName + " -o " + strEncryptionName; WshShell = new ActiveXObject( "WScript.Shell" ); WshShell.Run(cmd); sleep(500); if(WshFSO.FileExists(strEncryptionName)) { editor.NewFile(); //document.close(); //close current plain file editor.OpenFile( strEncryptionName ); }else{alert("Error. "+strEncryptionName+" not found." );} //-------------------------------- function fPathName(str) { if(str.lastIndexOf("\\") != -1) path = str.substring(0, str.lastIndexOf("\\")); return path; } function fBaseName(str) { if(str.lastIndexOf(".") != -1) base = str.substring(0, str.lastIndexOf(".")); return base; } function fNameExte(str) { if(str.lastIndexOf(".") != -1) exten = str.substring(str.lastIndexOf(".")+1); return exten; }
StefanParticipantCleaned-up Update:
strFullName = document.FullName;
strPath = fPathName(document.FullName);
strName = document.Name;
strBase = fBaseName(strName);
strExte = fNameExte(strName);
strPaBa = strPath+"\\"+strBase;
strNewName = strPath+ "\\" + strBase + "_Backup." + strExte;
strEEFolder = fPathName(editor.FullName);
strMyTool = strEEFolder + "\\Tools\\SubFolder\\application.exe";function fPathName(str)
{
if(str.lastIndexOf("\\") != -1)
path = str.substring(0, str.lastIndexOf("\\"));
return path;
}
function fBaseName(str)
{
if(str.lastIndexOf(".") != -1)
base = str.substring(0, str.lastIndexOf("."));
return base;
}
function fNameExte(str)
{
if(str.lastIndexOf(".") != -1)
exten = str.substring(str.lastIndexOf(".")+1);
return exten;
}
StefanParticipantAnother piece of example code, related to the above one, for all who could need it:
strName = document.FullName;
strBase = fBaseName(document.Name);
strExte = fNameExte(document.Name);
//strNewName = strBase + "_Backup." + strExte;
strEEFolder = fPathName(editor.FullName);function fPathName(str)
{
if(str.lastIndexOf("\\") != -1)
path = str.substring(0, str.lastIndexOf("\\"));
return path;
}
function fBaseName(str)
{
if(str.lastIndexOf(".") != -1)
base = str.substring(0, str.lastIndexOf("."));
return base;
}
function fNameExte(str)
{
if(str.lastIndexOf(".") != -1)
exten = str.substring(str.lastIndexOf(".")+1);
return exten;
}
StefanParticipantSame for me. v15.1.5, 32-bit portable.
editor.OpenFile( strFile )
didn’t work but give errorif I call that command
from within a script
with enabled ‘File Opened’ Event.
Dummy code f.ex.:OnFileOpenedEvent.jsee
if(strFileExt==”XML”)
editor.OpenFile( strOtherExistentFile )
Please assist.StefanParticipantAhh, and I have to set up my own before added Configurations again,…. or I just copy it over from my old “eeConfig.ini” ;-)
StefanParticipantOK, fixed.
I had to change
“OutlineViewLevel=0”
to
“OutlineViewLevel=1”
But still not worked for XML…though
So best is probably to just use the “eeConfig.ini” file provided in the downloaded ZIP archive.Now all fixed.
TXT, INI and XML Outline works.StefanParticipantI can’t edit my post anymore. So here a new post:
Stefan wroteSo I renamed the whole “eeConfig.ini” (instead of deleting).
OK, that was the wrong way ;-)
Now I have only that three configurations available in EE :-D
The “eeConfig.ini” is still need with all the old configuration, but has to cleaned up probably?I am going to fix that now…..
June 18, 2015 at 5:18 am in reply to: Search plugin: let work on fresh, unsaved files (Untitled.txt) #20192StefanParticipantHe, crazy, it works on a fresh, unsaved file Untitled, if there is another, but saved Untitled.txt file open too?!?!?
June 17, 2015 at 11:27 pm in reply to: BUG: Word Count: Refresh Automatically -> Refreshes count during selection #20189StefanParticipantDeipotent>>> “are already shown in the status bar”
But only if one has enabled it via “Tools > Customize > Status”
StefanParticipantArrg, I can’t edit my post anymore :-(
————- Translated Japan to English strings:
101 分割ボックス リセット
102 分割ボックスやスクロールバーなどをリセットし再描画させます。\n分割ボックス リセット
103 分割ボックス
104 Version 1.0.1 written by 星くず彼方に
105 SplitBox
101 Split box reset (Text in “Tools > Plugins” menu for the Split box plugin)
102 Reset and split box and scroll bars to redraw.\n split box reset (Text in status bar on hovering over “Tools > Plugins > <Split box>”)
103 Split box (Plugin name in Plugin configuration dialog)
104 Version 1.0.1 written by The stardust Kanata (Copyright notes in Plugin configuration dialog)
105 SplitBoxStefanParticipantAlso thanks for the link to Word-split function. Learned something new (also some new shortcuts, great!)
Also thank to The stardust Kanata for making that plugin.
Only I don’t get it working on 15.1.2, 32-bit portable
– copy SplitBox.dll to plugin folder
– launch EmEditor
– Tools > Plugins > Customize Plugins > Add > SplitBox.dll
I see now Tools > Plugins > <some japanisch words (Split box reset)>, but I can’t enable the plugin.
It just does nothing after clicking on it. I don’t see that little handles on the scroll bars.
Any help?
Any change to translate it to English?
Thanks for making EmEditor.
————- Translated Japan to English strings:
101 Split box reset
102 Reset and split box and scroll bars to redraw.\n split box reset
103 Split box
104 Version 1.0.1 written by The stardust Kanata
105 SplitBoxStefanParticipantThanks Paul!
StefanParticipantThe solution depends on how your real world example off “hello.com” look like.
For just “hello.com” search for \w+\.com
Find: \w+\.com
[X] Regular Expression
Explanation:
\w+ >> one-or-more (+) of “Any word character” (\w)
\. >> literal dot
com >> literal ‘com’
Even just “\w+.com” will work, but can lead to unwanted results as we search for one any-sign (.) instead of a real literal dot (\.)
More at the help > EmEditor Home – EmEditor Help – How to – Search >>> Regular Expression SyntaxStefanParticipantHi Paul,
please try Regular Expression, like
Find: john.+?\b
Replace: tim
[X] Regular ExpressionExplanation:
. (dot) >> match an single sign
+ >> match one-or-more of the expression just before (here: the dot)
? >> here: match non-greedy (only as much as need) . (depends which editor and which settings you use)
\b >> match till an space is found - AuthorPosts