AutoHotkey Syntax Highlighting for text editors
A collection of links and scripts to setup syntax highlighting for a variety of text editors.
This GitHub repository tries to maintain current versions of Keywords, Functions, Variables, Directives, Commands and Keys that used to be included with the AutoHotkey "basic" installer. By having installation scripts download these files from this repository, they are easier to maintain, and if written properly, make it easier to update your current syntax files when new commands or keywords are added to AutoHotkey.
A simple function to download the files from GH can be found here, but you can of course write your own.
Available files (for AutoHotkey 1.x)
Available files (for AutoHotkey 2.x)
- None as of yet
Dedicated AutoHotkey Editors:
- AHK Studio - Forum - Scintilla based editor written in AHK for AHK
- SciTE4AutoHotkey - forum
- QuickAHK - forum
Ready made syntax higlighting (may not be uptodate):
- AkelPad - tested with v4.8.7 (x64) with Coder 12.4 plugin
- Atom.io - rudimentary
- Notepad++ - v6.5.1
- Sublime Text 2/3
- TextPad - last update 2004
- TotalHLT - Language file for TotalHLT, a Lister plugin for Total Commander
Gone missing or to do
- Crimson Editor
Editors with "built-in" AutoHotkey syntax highlighting:
- CodeQuickTester - The quick code tester/editor
- GeSHi - PHP based "Generic Syntax Highlighter"
- Highlight - converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, SVG, BBCode and terminal escape sequences with coloured syntax highlighting
- Script: Syntax highlighting for posting AutoHotkey code on phpbb forums
- Web Syntax Highlighters
- Wordpress plugin
Download files and strip comments and empty lines
Available functions (for AutoHotkey 1.x)
Writing your own
If you write or update a script please do take into account the following:
- Include any specific instructions at the top of your installer script(s)
- Try to detect if syntax highlighting is already installed, if so, offer the option to the user to only update the Syntax File (and not affect any colour schemes they may already have setup)
- Always have your script download these files from the GitHub repository: Commands.txt, Directives.txt, Functions.txt, Keywords.txt, Variables.txt and Keys.txt. That way your script does not have to be updated when a new function or command is added.
- Submit a pull request to this GH repository to have your script included here