如何使多行AutoHotKey脚本更具可读性?


12

我想创建一个生成此文本的AutoHotKey脚本:

==videoReview
aspnetmvc
IDCODE
TITLE
DESC
10:00
viewable online
[[

]]
3
english
extras::$url=nnn;$reason=

使用类似的工具Texter,我将其定义如下:

==videoReview
aspnetmvc
IDCODE
TITLE
DESC
10:00
viewable online
[[
%|
]]
3
english
extras::$url=nnn;$reason=

很简单的。

另一方面,在AutoHotKey中,我的脚本看起来很乱很难编辑,如下所示:

==videoReview{ENTER}aspnetmvc{ENTER}IDCODE{ENTER}TITLE{ENTER}DESC
{ENTER}10:00{ENTER}viewable{ENTER}online{ENTER}[[{ENTER}{ENTER}
{ENTER}]]{ENTER}3{ENTER}english{ENTER}extras::$url=nnn;
$reason={Up}{Up}{Up}{Up}{Up}

是否可以通过允许多行格式来使AutoHotKey脚本更具可读性?

(除了这有点难以理解,它说hotstring的最大缩写长度是40)

Answers:


14

这里发现您可以在多行文本中使用括号,这可以正常工作:

::vidrev::
(
==videoReview
aspnetmvc
IDCODE
TITLE
DESC
10:00
viewable online
[[

]]
3
english
extras`::$url=nnn;$reason=
)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.