2019-01-01から1年間の記事一覧
//保存時の処理 S_SetDrawSwitch(0); //描画オフ S_MoveHistSet(0); // 現在位置を移動履歴に登録 S_ReplaceAll('(?:^|\G)(?: {4}|\t)', '\\t', 36); // すべて置換(インデントをスペースからタブに変換) S_MoveHistPrev(0); // 移動履歴: 前へ S_SetDrawS…
javascript なら 以下のコードで取得可能。 window.addEventListener("focus", function(event) { 何か処理する; }, false); 参考1 Is there a browser event for the window getting focus? https://stackoverflow.com/questions/3478654/ stackoverflow.co…
次の正規表現でインデントをスペースからタブに置換できる。 検索文字列の {4} でインデント幅を指定している。サクラエディタで置換可能。 検索文字列 (?:^|\G)(?: {4}|\t) 置換文字列 \t 参考https://stackoverflow.com/questions/12807987/regex-to-chang…