LoginSignup
5
4

More than 5 years have passed since last update.

AutoHotKeyでのヒアドキュメント

Last updated at Posted at 2012-07-18

よく忘れるのでメモ。

sample_heredocument.ahk
; AutoHotKeyでのヒアドキュメント

Message=
(
こんな
かんじで
複数の行に渡って書けます
`)と書けば、閉じカッコ自身を記述できます
)

MsgBox % Message

実行結果

実行結果

補足

変数展開ではなく、式展開したい場合にはこのように書きます。ダブルクォートの位置に注意。

sample_heredocument2.ahk
; 変数展開ではなく、式展開したい場合にはこのように書く
msg := "
(
MaxIndex()=" . files.MaxIndex() . "
MinIndex()=" . files.MinIndex() . "
)"
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4