TestSuite.ahk

From AutoHotkey SciTE

- /*    ***************************************************
   * SciTE4AutoHotkey v3 syntax highlighting demo    *
   * August 19, 2010 - fincs                         *
   ***************************************************
  */
 
  ; Normal comment
- /*
  Block comment
  */
 
  ; Directives, keywords
  #SingleInstance Force
  #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