Last active
March 26, 2025 19:20
-
-
Save masato3/6e3a2e28e43ffbac9f9b535cd4955649 to your computer and use it in GitHub Desktop.
サクラエディタ マクロ 開いているファイルにテンプレート挿入
This file contains hidden or 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
// https://qiita.com/heizitsutomo/items/e790fd380d548d75a8d0 | |
var fs = new ActiveXObject("Scripting.FileSystemObject"); | |
var template_file = fs.OpenTextFile("C:/tools/sakura/template/weekly.md", 1); | |
var text = template_file.ReadAll(); | |
Editor.InsText(text); | |
template_file.Close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment