Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 10 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .