Reputation: 43
doc = Nokogiri::HTML(html.read)
::hotstring:: '< this doesn't work
(
Nokogiri::HTML
)
When I try to make that line as a hotstring in Autohotkey, it does not seem to work. I tested some variations and realized that the colons ::, when included, sort of breaks that hotstring and it doens't work.
How can I make the above code into a working hotstring?
Upvotes: 3
Views: 977
Reputation: 10822
https://autohotkey.com/docs/commands/_EscapeChar.htm says:
`::
(literal pair of colons). In v1.0.40+, it is no longer necessary to escape these.
However, this doesn't really seem to be true: Your hotstringi doesn't work for me either.
Still, if you escape the ::
as shown in the link, it'll work for you.
::hotstring::
(
Nokogiri`::HTML
)
Upvotes: 2
Reputation: 30273
See "Ending Characters" in the AutoHotkey documentation for Hotstrings.
Unless the asterisk option is in effect, you must type an ending character after a hotstring's abbreviation to trigger it. Ending characters initially consist of the following: -()[]{}':;"/\,.?!`n `t (note that `n is Enter, `t is Tab, and there is a plain space between `n and `t). This set of characters can be changed by editing the following example, which sets the new ending characters for all hotstrings, not just the ones beneath it:
In other words, remove the colon from EndChars
like this:
#Hotstring EndChars -()[]{};'"/\,.?!`n `t
Upvotes: 1