emeditor - 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技能,如果可能的话,代码就像愚蠢一样简单,谢谢
解决方案
如果要选择第 10-20 行,可以编写如下宏:
document.selection.SetActivePoint(eePosView,1,10);
document.selection.SetActivePoint(eePosView,1,20,true);
推荐阅读
- python - 在 conda 环境中访问 Matlab 运行时
- vba - VBA组合代码循环功能
- android - java.lang.NoClassDefFoundError firebase Firestore android
- c# - 显示数组中的每个值
- laravel - 如何选择合适的控制器来处理 MVC 中的请求?
- javascript - 将复杂的 FormData 从 Angular 5 传递到 Java Spring 3
- php - WordPress 上的自定义帖子未显示
- vb.net - 将数据插入 datagridview vb.net
- c++ - 多字符字符常量警告
- visual-studio-code - `cursorHomeSelect`操作的VS Code默认键绑定`shift+cmd+left`不起作用