Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to create an AutoHotKey script that generates this text:

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

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

Using a similar tool called Texter, I define it like this:

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

Very simple.

In AutoHotKey, on the other hand, my script looks messy and is hard to edit, like this:

==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}

Is there a way to make AutoHotKey scripts more readable than this by allowing for multiline format?

(besides this being a bit unreadable, it says hotstring maximum abbreviation length is 40)

share|improve this question
add comment

1 Answer 1

up vote 6 down vote accepted

Found out here that you can use parentheses for multiline text, this works:

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

]]
3
english
extras`::$url=nnn;$reason=
)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.