[過去ログ] EmEditor Part5 (1001レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
405
(1): 04/01/23 03:51 ID:t3nrXAtq(3/9)調 AAS
>>394
作ってみた。眠いのでもう寝る
寝てる間にデバッグ希望

var wordLen;
var tmp;
document.selection.StartOfDocument();
document.selection.Find("[0-9a-zA-Z]+", eeFindReplaceRegExp + eeFindReplaceOnlyWord);
document.selection.SelectAll();

  while (document.selection.FindRepeat(eeFindRepeatNext)) {
    wordLen = document.selection.Text.length;
    document.selection.CharLeft(true);
    tmp = document.selection.Text;
    if (tmp == " " || tmp == "、" || tmp == "。") {
      document.selection.CharRight(false, wordLen + 1);
    } else {
      document.selection.Text = tmp + " ";
      document.selection.CharRight(false, wordLen);
    }
    document.selection.CharRight(true);
    tmp = document.selection.Text;
    if (tmp != " ") document.selection.Text = " " + tmp;
  }
406
(1): 04/01/23 03:52 ID:t3nrXAtq(4/9)調 AAS
>>402
\→\\
俺が悪かった
407
(1): 04/01/23 03:56 ID:t3nrXAtq(5/9)調 AAS
あれ、ごめん
なんか違うソース乗せちゃったみたい
408
(4): 04/01/23 04:12 ID:t3nrXAtq(6/9)調 AAS
なぜかゴミ箱に捨ててあった(;´Д`)モウネル

var wordLen;
var tmp;
document.selection.StartOfDocument();

  while (document.selection.Find("[0-9a-zA-Z]+", eeFindReplaceRegExp + eeFindNext) != 0) {
    wordLen = document.selection.Text.length;
    document.selection.CharLeft(true);
    tmp = document.selection.Text;
    if (tmp == " " || tmp == "、" || tmp == "。") {
      document.selection.CharRight(false, wordLen + 1);
    } else {
      document.selection.Text = tmp + " ";
      document.selection.CharRight(false, wordLen);
    }
    document.selection.CharRight(true);
    tmp = document.selection.Text;
    if (tmp != " ") document.selection.Text = " " + tmp;
  }
409
(3): 04/01/23 04:21 ID:t3nrXAtq(7/9)調 AAS
そうそう、最後にこれを入れてくれ

document.HighlightFind = false;

じゃ
1-
あと 592 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ

ぬこの手 ぬこTOP 0.008s