Forum Replies Created
- AuthorPosts
- Yutaka EmuraKeymaster
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!Yutaka EmuraKeymasterThat’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?
Yutaka EmuraKeymasterDid 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.
Yutaka EmuraKeymasterSearching 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.Yutaka EmuraKeymasterThis 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.
Yutaka EmuraKeymasterI have not seen .eac files for Ruby and Rails before. You can define those by yourself by copying other files.
Yutaka EmuraKeymasterHere 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;
:-)
Yutaka EmuraKeymasterBefore 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?
Yutaka EmuraKeymasterYou can click Move to Start/End of Document in the Find dialog box.
Yutaka EmuraKeymasterIn that case, you might want to try Auto Complete plug-in.
Yutaka EmuraKeymasterI have also received that request before. I might consider it. Thanks!
Yutaka EmuraKeymasterYou 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.
Yutaka EmuraKeymasterYou 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." )
}
Yutaka EmuraKeymasterIt is not possible unless you write a macro and assign that macro to CTRL+SHIFT+Right or Left.
Yutaka EmuraKeymasterI am not sure what you mean by column maker. You should explain more in details or draw a picture.
Yutaka EmuraKeymasterThis 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();
}
}
Yutaka EmuraKeymasterIn future versions, you will be able to add the Save As button. In future, when a macro can be configured with a toolbar button with a favorite icon, you can assign any command to a toolbar button.
Yutaka EmuraKeymasterWhich text do you want to change? Explorer tree items?
Explorer tree color cannot be changed. It uses the Windows default color scheme. Or if you want to change text color in the document window, you can set from the Properties – Display tab.Yutaka EmuraKeymasterActually it was a specification, but I will try to correct this behavior. Thanks!
Yutaka EmuraKeymasterPlease try the latest version, please…
Yutaka EmuraKeymasterYou might want to try Auto complete macro using similar word in document, which does exactly what you would expect. You can customize the keyboard so CTRL + Space will run this macro.
Yutaka EmuraKeymasterThere are many ways to do using macros, but you will need some kind of SMTP available to use. If you use Outlook, you can use a macro you can find at http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=168
Yutaka EmuraKeymasterSometimes, etlframe updates break some old code.
Try adjusting the parameters so they will match the newer version of etlframe.h. I will try to update all source code when I have a time.In this case,
OnEvents in AutoComplete.h should be:
void OnEvents( HWND hwndView, UINT nEvent, LPARAM )
Also, change SetUninstall to
BOOL SetUninstall( HWND hDlg, LPTSTR, LPTSTR )
Yutaka EmuraKeymasterHave you tried some auto-complete macros or plug-ins? Some are available in this web site – Library.
Yutaka EmuraKeymasterClick Explorer button on the Plug-ins Bar, or select Plug-ins on the Tools menu, and select Explorer.
- AuthorPosts