Home / GitHub Page

AutoHotkey / AHK Syntax Support

I have a few hundred AHK scripts and snippets. Is there any chance that Joplin will support the AutoHotkey syntax in the future? It’s a pretty popular scripting language for windows based automation tasks.

I think Joplin uses highlight.js, if that supports autohotkey then guaranteed Joplin will as well. Since Joplin doesn’t implement syntax highlighting itself, this change is very unlikely to happen (unless of course it is changed upstream).

Thanks for the reply, I checked the supported languages by highlight.js and AutoHotkey is supported but is limited at this time.

We use a custom build of highlight.js that only include some languages: https://github.com/laurent22/joplin/tree/master/ElectronClient/app/gui/note-viewer/highlight

The list is this one:

  • apache
  • go
  • bash
  • shell
  • javascript
  • ini
  • coffeescript
  • ruby
  • sql
  • java
  • http
  • perl
  • xml
  • cpp
  • json
  • cs
  • nginx
  • markdown
  • css
  • python
  • objectivec
  • php
  • diff
  • makefile

If someone wants to build a new custom package and include AutoHotKey or any other language I can merge it. See here to build the package: https://highlightjs.org/download/