2024年3月28日 4:51 am #31721
Keymaster
いつもお世話になっております。江村です。
残念ながら、いい方法がないのですが、次のように行うことは可能です。
#language = "v8"
const xStart = [ 1, 1, 1 ];
const yStart = [ 1, 4, 7 ];
const xEnd = [ 3, 3, 3 ];
const yEnd = [ 2, 5, 8 ];
document.selection.Collapse();
document.selection.EndOfDocument();
for( let i = 0; i < xStart.length - 1; ++i ) {
editor.ExecuteCommandByID(4027); // Line Up Extend (Vertical Mode)
}
for( let i = 0; i < xStart.length; ++i ) {
document.selection.SetActivePoint( eePosLogical, xStart[i], yStart[i], false, i + 1 );
document.selection.SetActivePoint( eePosLogical, xEnd[i], yEnd[i], true, i + 1 );
}
10 桁、10行以上のテキストに対して上のサンプルが動作します。
v24.1.901 以上のバージョンでは、改善を検討させていただきます。
よろしくお願いいたします。