SciTE's code folding makes code easier to read. The present version does not syntax highlight .INI files such as AutoHotkey.ini, only .AHK files.
The alternative syntax highlighting file below uses no italic or bold fonts, and increases the intensity of strings. Save the code below with the name:
ahk.properties
and use it to replace the file in
\AutoHotKey\SciTE4AutoHotkey
Code:
# ahk.properties file replacement
# from Futurepower®.
# Uses no italic or bold fonts.
# Increases the display intensity of strings.
#_____________________________________
# SciTE settings for AutoHotkey files
# Set default AutoHotkey path
AutoHotkeyDir=$(SciteDefaultHome)\.
# General settings
file.patterns.ahk=*.ahk
filter.ahk=AutoHotkey (ahk)|$(file.patterns.ahk)|
lexer.$(file.patterns.ahk)=ahk1
# Import keywords
import ahk.keywords
# Autocomplete and call tip settings
api.$(file.patterns.ahk)=$(SciteDefaultHome)\api\ahk.api
calltip.ahk1.word.characters=#$(chars.alpha)$(chars.numeric)$(chars.accented)
calltip.ahk1.ignorecase=1
calltip.ahk1.parameters.start= ( ,
calltip.ahk1.parameters.end= )
calltip.ahk1.parameters.separator= ,
autocomplete.ahk1.ignorecase=1
autocomplete.ahk1.start.characters=$(chars.alpha)$(chars.numeric)$_@#
word.characters.$(file.patterns.ahk)=$(chars.alpha)$(chars.numeric)$(chars.accented).$_@#
# Auto Indent - this feature uses lua script
extension.$(file.patterns.ahk)=$(SciteDefaultHome)\indent.lua
# Comments functions definition
comment.block.ahk1=;~
comment.block.at.line.start.ahk1=1
comment.stream.start.ahk1=/*
comment.stream.end.ahk1=*/
comment.box.start.ahk1=/*
comment.box.end.ahk1= */
# Some fold settings
fold.at.else=1
# AutoHotkey Style
# Base (background, base font)
style.ahk1.32=
# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#C0C0C0
# Line comment (; syntax)
style.ahk1.1=fore:#008000
# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#008040
# Escape (`x)
style.ahk1.3=fore:#FF8000
# Syntax operator
style.ahk1.4=fore:#00C800
# Expression operator
style.ahk1.5=fore:#FF0000
# String
style.ahk1.6=fore:#C0C0C0
# Number
style.ahk1.7=fore:#0000FF
# Identifier (variable & function call)
style.ahk1.8=fore:#C80000
# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8),back:#F0F0FF
# Label, Hotkeys & Hotstrings (& Function definition?)
style.ahk1.10=fore:#000000,back:#FFFFD1
# Keyword - Flow of control
style.ahk1.11=fore:#0000C8
# Keyword - Commands
style.ahk1.12=fore:#0000A0
# Keyword - Functions
style.ahk1.13=fore:#0000FF
# Keyword - Directives
style.ahk1.14=fore:#008000
# Keyword - Keys & buttons
style.ahk1.15=fore:#FF00FF
# Keyword - Built-in Variables
style.ahk1.16=fore:#FF00FF
# Keyword - special parameters ("Keywords")
style.ahk1.17=$(style.ahk1.13)
# Keyword - User defined
style.ahk1.18=fore:#800020
# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16),back:#F0F0FF
# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#FFC0C0
# Command to run script (F5)
command.go.$(file.patterns.ahk)="$(AutoHotkeyDir)\AutoHotkey.exe" /ErrorStdOut "$(FileNameExt)"
# Commands to compile script (F7 & Ctrl+F7)
command.compile.*.ahk=$(AutoHotkeyDir)\Compiler\Ahk2Exe.exe /in "$(FilePath)"
command.build.*.ahk="$(AutoHotkeyDir)\Compiler\Ahk2Exe.exe" /in "$(FilePath)"
# Help on keywords (F1)
command.help.*.ahk=$(CurrentWord)!$(autohotkeydir)\AutoHotkey.chm
command.help.subsystem.*.ahk=4
# Active window info tool
command.name.1.*.ahk=Active Window Info
command.1.*.ahk=$(AutoHotkeyDir)\AU3_Spy.exe
command.save.before.1.*.ahk=1
command.subsystem.1.$(file.patterns.ahk)=1
# SmartGUI 4 SciTE
command.name.2.*.ahk=SmartGUI
command.2.*.ahk=$(SciteDefaultHome)\tools\SmartGUI4SciTE.exe
command.save.before.2.*.ahk=1
command.subsystem.2.$(file.patterns.ahk)=2