Last active
August 14, 2022 02:13
-
-
Save gh640/7496275 to your computer and use it in GitHub Desktop.
サクラエディタ上で Ruby スクリプトを手早く実行するためのマクロです。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S_ExecCommand('ruby -Ku "$F"', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
手順
補足
S_ExecCommand()
コマンドを実行する関数-Ku
rubyコマンドの文字コード指定オプション -Ku は UTF-8 を指定 他の文字コードを使っている場合は適宜変更要$F
開いているファイルのファイル名"$F"
ファイル名/パスに半角スペースが入っても問題なく動くようにするための "" 括り1
出力結果を別のウィンドに書き込むオプション