EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Two questions
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
chenfan
Posted on: 12/24/2009 7:45 am
Just popping in
Joined: 12/24/2009
From:
Posts: 1
Two questions
First:
Custom ENTER
I wrote a macro, the main function is that when the cursor to the bottom of the screen, then enter a new sentence, it can automatically scroll to the top of the screen, I wanted to customize the enter key as its shortcut key, but the keyboard maps, you can not customize the Enter key.
Macro is as follows:
document.selection.NewLine(1);
document.selection.Text=" ";
document.selection.DeleteLeft(1);
curline = document.selection.GetActivePointY(eePosView);
editor.ExecuteCommandByID(4292);
topline = document.selection.GetActivePointY(eePosView);
editor.ExecuteCommandByID(4293);
botline = document.selection.GetActivePointY(eePosView);
editor.ExecuteCommandByID(4345);
n = botline - topline
if ( botline < n + 2 ) Quit();
if ( curline == botline )
{ for (i = 1; i <= n - 1; i++)
{
editor.ExecuteCommandByID(4171);
}
}
Is there any way to customize the Enter key? Or, there are other ways to achieve what I want to feature? (Have checked "Always Enable 1 Page Vertical Scroll check box")
Second:
A bug?
Wrap-Not Allowed at Line Head text box:"。" And "” "
When they separate when a show is correct.However, if they are combined together, but exactly when the wrap,"”"at the beginning of new lines.
Yutaka
Posted on: 12/30/2009 9:17 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Two questions
1) Unfortunately, you can't customze the ENTER key.

2) When two of these characters are combined, these characters are NOT wrapped correctly. This is the current specification.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文