Archives

Currently Reading

Interesting TimesSoul MusicMen at ArmsLords and LadiesWitches AbroadReaper Man

More of Sytone's books »
Book recommendations, book reviews, quotes, book clubs, book trivia, book lists

SyntaxHighlighter Evolved: Autohotkey Brush

I made the wordpress plugin to allow syntax highlighting of AutoHotkey.

Download

SyntaxHighlighter Evolved: Autohotkey Brush (50)

Or you can get it from the WordPress site: http://wordpress.org/extend/plugins/syntaxhighlighter-evolved-autohotkey-brush/

This brush was originally provided by “mjneish”, created by user “n-l-i-d”
 * homepage:   http://users.on.net/~mjneish

Just copy to plugins and activate. It requires/tested with SyntaxHighlighter Evolved Version 3.1.2

Example

Example from mjneish’s site.

#NoTrayIcon

; Command, literal text, escape sequence
MsgBox, Hello World `; This isn't a comment

; Operators
Bar = Foo  ; operators
Foo := Bar ; expression assignment operators

; String
Var := "This is a test"

; Number
Num = 40 + 4

; Dereferencing
Foo := %Bar%

; Flow of control, built-in-variables, BIV dereferencing
If true
	MsgBox, This will always be displayed
Loop, 3
	MsgBox Repetition #%A_Index%

; Built-in-function call
MsgBox % SubStr("blaHello Worldbla", 4, 11)

If false
{
	; Keys and buttons
	Send, {F1}
	; Syntax errors (the following is fake, but to show you)
	MyVar = "This is a test
}

ExitApp

; Label, hotkey, hotstring
Label:
#v::MsgBox You pressed Win+V
::btw::by the way