저희가 쓰는 언어 ahk언어는, 친절하게도 구문강조 파일들을 Edit 에 따라 다양하게 넣어뒀습니다.
그런데 모르는사람이 태반이죠 ㅎㅎ
그래서 알려드릴까 합니다.. 일단 제가 쓰는 에디터는

EditPlus, 무려 한국산이죠.
그냥 전부터 공부할때 써오던 에디턴데요, 손에 익은거라 아직도 씁니다.
에디터는 익숙한게 제일이죠 ㅋ
일단 첨부한 싱텍스파일을 받습니다. 아무곳에나 받으셔도 되는데, 지워지면 안됩니다.
(이 파일은 c:\program files\autohotkey\Extras\Editors에 에디터에따라 다 깔려있습니다)
그리고

영구적인 설정을 누릅니다. 그후에

기본항목이 뜨는데요, 파일항목옆에 추가(D)... 보이시나요? 이걸눌러서 AutoHotkey라고 추가해줍니다.
그리고 저대로 설정해주세요. 구문파일에는 옆에 ... 을 클릭해서 아까 받은 파일의 경로로 설정해줍니다.
그후 저 빨간 네모를 클릭해줍니다.

그러면 이렇게 뜨는데요, 8 8 하고 아무것도 안써있는상태일겁니다.
그걸 저렇게 4 4 { } 로 적어줍니다. 그리고 확인을 다 누르시면,

짠~ 구문강조가 적용되었습니다 ^^.. 이렇게 훨씬 편하게 볼수 있겠네요.
자 그럼 우리 모두 에디터로 작성해봅시다.
P.S Tip, 여기서 편집-클립보드-HTML로 복사 를 누르셔서 붙여넣기로 스크립트를 올리시면
#NoEnv
#SingleInstance, Force
#Persistent
Critical,On
Thread, NoTimers
SetBatchLines, -1
CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
DetectHiddenWindows, On
SetTitleMatchMode ReGex
; <from GDI+ standard library by tic>
If !DllCall("GetModuleHandle", "Str", "gdiplus")
DllCall("LoadLibrary", "Str", "gdiplus")
VarSetCapacity(si, 16, 0), si := Chr(1)
DllCall("gdiplus\GdiplusStartup", "UInt*", pToken, "UInt", &si, "UInt", 0)
VarSetCapacity(si, 0)
Gdip_CreateBitmapFromFile(sFile)
{
VarSetCapacity(wFile, 1023)
DllCall("kernel32\MultiByteToWideChar", "UInt", 0, "UInt", 0, "UInt", &sFile, "Int", -1, "UInt", &wFile, "Int", 512)
DllCall("gdiplus\GdipCreateBitmapFromFile", "UInt", &wFile, "UInt*", pBitmap)
Return, pBitmap
}
Gdip_GetImageWidth(pBitmap)
{
DllCall("gdiplus\GdipGetImageWidth", "UInt", pBitmap, "UInt*", Width)
Return, Width
}
Gdip_GetImageHeight(pBitmap)
{
DllCall("gdiplus\GdipGetImageHeight", "UInt", pBitmap, "UInt*", Height)
Return, Height
}
; </from GDI+ standard library by tic>
look4:=A_ScriptDir . "\look4.bmp"
sizeX:=Gdip_GetImageWidth(Gdip_CreateBitmapFromFile(look4)),sizeY:=Gdip_GetImageHeight(Gdip_CreateBitmapFromFile(look4))
TrayTip, ,Press F1 or F2 to begin the test. F3 to reload`, F4 to exit.
onexit, exit
return
exit:
winclose, %w%
exitapp
look4(picture,width,height,x1,y1,x2,y2,desiredvarname="imagesearch")
{
global
width-=1
height-=1
local ammount = 0,currentx,currenty,x = %x1%,loop = -1
Loop, % y2-y1
{
currentx =
currenty =
loop+=1
If loop > y2
Return %ammount%
ImageSearch, currentx, currenty, %x%, % y1+loop, %x2%,% y1+loop+height, %picture%
if errorlevel != 0
{
x := x1
Continue
}
ammount+=1
%desiredvarname%x%ammount% = %currentx%
%desiredvarname%y%ammount% = %currenty%
if %currentx% <= (x2-width)
{
x := currentx+width
loop-=1
}
Else
x = %x1%
}
Return %ammount%
}
*F1::
traytip, , Please wait`, loading (3 secs to be sure its loaded)...
traytip, , Please wait`, searching...
msgbox % look4(look4,sizeX,sizeY,0,0,A_ScreenHeight,A_ScreenWidth)
winclose, %w%
traytip, , thanks for testing it
return
*F3::reload
*F4::goto exit
이렇게 색깔을 입힌걸 보여줄수 있습니다 ㅎㅎ