首页 > 解决方案 > emeditor的marco可以模拟多行选择吗?

问题描述

我只是学习和测试 emeditor's marco 现在在这里我有一个问题,关于我如何使用 emeditor's marco 来选择多行,例如我想选择第 10 行到第 20 行,我如何用 marco 语言来做

我知道我可以用这个

document.selection.SetActivePoint(eePosView,1,10)
document.selection.selectline();
document.selection.SetActivePoint(eePosView,1,10)
document.selection.selectline();

但它只能选择第10行然后第20行,有两行如何模拟选择第10行到第20行,如第10行到第20行,有10行

我的英语很差谢谢你有时间阅读我糟糕的英语我没有javascript技能,如果可能的话,代码就像愚蠢一样简单,谢谢

标签: emeditor

解决方案


如果要选择第 10-20 行,可以编写如下宏:

document.selection.SetActivePoint(eePosView,1,10);
document.selection.SetActivePoint(eePosView,1,20,true);


推荐阅读