6

Currently, AutoHotkey (ahk) code blocks are not syntax highlighted, like the following code:

#z::
MsgBox The Win-Z hotkey was pressed.
Gosub MySubroutine
return

MySubroutine:
Sleep 1000
return

While highlight.js supports it, it's not listed in the officially supported identifiers by Stack Exchange.

And quote from Why isn't my code being highlighted correctly?:

Look at the list of highlight.js supported languages. If your language is not on the list, it needs to be created within the highlight.js project before it can be deployed by Stack Exchange.

If a language is already on the list but not used on Stack Exchange, please raise a feature request here on Meta to have it deployed on the network.

Therefore, I'm raising a feature request for it.

9
  • related: meta.stackoverflow.com/questions/382885/…
    – rene
    Aug 21, 2021 at 8:13
  • 2
    @rene That was before highlight.js, right? Wenfang, I can see AutoHotKey in the list of supported languages but I'm not sure how to enable it here (or if it's supported). I tried autohotkey and ahk but both didn't work.
    – 41686d6564
    Aug 21, 2021 at 8:21
  • 3
    Moderators have been directed by Stack Exchange to indicate that the current response to any and all feature requests to add additional syntax highlighting languages, assuming the language is already supported by highlight.js, but not Stack Exchange, is the same as the answer to: "Julia syntax highlighting" on Meta Stack Exchange.
    – Makyen Mod
    Aug 21, 2021 at 22:56
  • @Makyen You cleaned up some very useful comments, could you please restore them?
    – Wenfang Du
    Aug 21, 2021 at 23:21
  • 1
    @WenfangDu I'll look through them again, but they all appeared to either have already been incorporated into the question, or to be about "meta meta" things (e.g. the number of close votes or reopen votes at the time the comment was made, finding the question in the reopen queue, how many close votes it takes to close a question, differences in what's displayed per user in the review queues. etc.). In other words, things that were either not about this question or which were about past states of this question which are no longer relevant.
    – Makyen Mod
    Aug 21, 2021 at 23:37
  • @WenfangDu I read through the comments again. I didn't see anything that remained relevant to the current state of the question. If there's something specific which you felt should be mentioned, please explain what it was.
    – Makyen Mod
    Aug 21, 2021 at 23:40
  • @Makyen You're probably right, they're no longer relevant to the question, but they're useful on their own.
    – Wenfang Du
    Aug 21, 2021 at 23:53
  • @Makyen Is there a way to send them to me personally so that it stays clean for newcomers?
    – Wenfang Du
    Aug 21, 2021 at 23:56
  • 1
    No need to bother mods with that - drop by in chat anytime, and we will gladly recite what you feel is needed :) Aug 22, 2021 at 0:15

0

You must log in to answer this question.

Browse other questions tagged .