Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

My script for automatic syntaxfile instalation for UltraEdit


  • Please log in to reply
57 replies to this topic
Tekl
  • Members
  • 814 posts
  • Last active: May 03 2009 03:28 PM
  • Joined: 24 Sep 2004
Hi,

here a script that automatically modifys the actual wordfile for UltraEdit. If there is always a AHK-syntax, it will update it und if there is no syntax for AHK present then it adds it to the wordfile. It also creates a backup. This script uses the syntax-file from EditPlus to create UltraEdits syntaxfile. It also assigns UE to the default AHK-Editor.

To use this script, you should create it in a subfolder inside AHK/Extras/Editors"

I've only tested this script with UE 10.20

If it works for you all, it could be included in the release.

RegRead, UeditPath, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\UEDIT32.exe,Path

ifNotExist, %UeditPath%\uedit32.exe
{
   FileSelectFolder, UeditPath,, 0,Select UltraEdit program-folder
}
ifNotExist, %UeditPath%\uedit32.exe
{
   MsgBox, 16,, UltraEdit cannot be found.
   ExitApp
}

UEini = %APPDATA%\IDMComp\UltraEdit\uedit32.ini

IfNotExist, %UEini%
{
   FileSelectFile, UEini, 1, %ProgramFiles%\UltraEdit, Select UltraEdit INI-File, *.ini
}

IniRead, UEwordfile, %UEini%, Settings, Language File

if UEwordfile = ERROR
{
   MsgBox, 16,, Wrong INI-File, missing the Key: Language File
   ExitApp
}

; Get path of AHK-path
ahkpath = %A_WorkingDir%
StringGetPos, pos, ahkpath, \, R3
StringLeft, ahkpath,ahkpath, %pos%

AHKwordfilepart = "AutoHotkey" Nocase Line Comment = `; Escape Char = `` String Chars = `% File Extensions = ini ahk`n
AHKwordfilepart = %AHKwordfilepart%/Delimiters = ~!@`%^&*()-+=``|\/{}[]:;"'<> , .? `n
AHKwordfilepart = %AHKwordfilepart%/Indent Strings = "{" ":"`n
AHKwordfilepart = %AHKwordfilepart%/Unindent Strings = "}" "Return"`n
AHKwordfilepart = %AHKwordfilepart%/Function String = "`%[^t ]++^(:++[a-zA-Z0-9_äöüß<>^~!$#+.*^^^[^]]++:+^)"`n

KWcolor = 0
Loop, Read, %ahkpath%\Extras\Editors\EditPlus\AutoHotkey.stx
{
   StringLeft, KWdef , A_LoopReadLine , 8
   StringMid,  KWname, A_LoopReadLine, 10, 100
   if KWdef = #KEYWORD
   {
      Sort, AHKwordsToSort
      gosub, WordsInOneLine
      AHKwordfilepart = %AHKwordfilepart%%AHKwordsToSort%
      AHKwordsToSort =

      KWcolor += 1
      AHKwordfilepart = %AHKwordfilepart%`n/C%KWcolor%"%KWname%"
      Continue
   }

   if KWcolor = 0
      Continue
   
   StringLeft, KWfirst, A_LOOPREADLINE, 1
   
   if KWfirst = `;
      Continue
      
   Line = %A_LoopReadLine%
   
   if Line = #
      Continue
   
   if KWfirst = ^      
      StringReplace, Line, Line, ^,
  
   AHKwordsToSort =%AHKwordsToSort%`n%Line%
   
}
Sort, AHKwordsToSort
gosub, WordsInOneLine
AHKwordfilepart = %AHKwordfilepart%%AHKwordsToSort%

Loop, Read, %UEwordfile%, UEwordfile.txt
{
   StringLeft, WFdef, A_LoopReadLine, 2
   StringGetPos, WFpos, A_LoopReadLine, "
   WFcolLen = %WFpos%
   WFcolLen -= 2
   StringMid, WFcolor, A_LoopReadLine, 3, %WFcolLen%
   StringSplit, WFname, A_LoopReadLine, "
   
   if WFdef = /L
   {
      WFactName = %WFname2%
      WFactColor = %WFcolor%
      if WFactName = AutoHotkey
      {
         FileAppend, /L%WFactColor%%AHKwordfilepart%
         WFahktrue = 1
      }
   }
   
   if WFactName <> AutoHotkey
   {
      FileAppend, %A_LoopReadLine%`n
   }
}

if WFahktrue <> 1
{
   WFactColor += 1
   FileAppend, /L%WFactColor%%AHKwordfilepart%, UEwordfile.txt
}
If WFactColor > 19
{
   MsgBox, 48,, The wordfile has 20 or more syntax-schemes. UltraEdit does only support 20 schemes.`nPlease delete one scheme from the file!
   FileDelete, UEwordfile.txt
   ExitApp
}

FileCopy, %UEwordfile%, %UEwordfile%.ahk.bak, 1
FileMove, UEwordfile.txt, %UEwordfile%, 1

RegWrite, REG_SZ,HKEY_CLASSES_ROOT,AutoHotkeyScript\Shell\Edit\Command,, %UeditPath%\uedit32.exe "`%1"

if WFahktrue = 1 
   MsgBox, 64,, The AutoHotkey-Syntax for UltraEdit has been updated in your actual wordfile!`n`n%UEwordfile%`n`nA backup has been created in the same folder.
else   
   MsgBox, 64,, The AutoHotkey-Syntax for UltraEdit has been added to your actual wordfile!`n%UEwordfile%`n`n`nA backup has been created in the same folder.

Return

WordsInOneLine:
   WordBeg_last =
   Concat =
   Loop, Parse, AHKwordsToSort, `n
   {
      StringLeft, WordBeg, A_LoopField, 1
      If WordBeg = %WordBeg_last%
      {
         AutoTrim, off
         Concat=%Concat%%A_LoopField%%A_Space%
         AutoTrim, on
      }
      else
      {
         AutoTrim, off
         Concat=%Concat%`n%A_LoopField%%A_Space%
         AutoTrim, on
      }
      WordBeg_last = %WordBeg%
   }
   AHKwordsToSort = %Concat%
Return

Tekl

Tekl
  • Members
  • 814 posts
  • Last active: May 03 2009 03:28 PM
  • Joined: 24 Sep 2004
Does no one use Ultraedit?

Tekl

jonny
  • Members
  • 2951 posts
  • Last active: Feb 24 2008 04:22 AM
  • Joined: 13 Nov 2004
Maybe if it was freeware. I use PSPad, the only freeware with an AHK syntax file. I'm just a big cheap jerk who doesn't care to contribute to the software community. :lol:

Tekl
  • Members
  • 814 posts
  • Last active: May 03 2009 03:28 PM
  • Joined: 24 Sep 2004
Hi,

For students and freeware/shareware-authors EmEditor is free. I've only one archive on my homepage and they send me the registration-key.

http://www.emurasoft.com/tech/

Tekl

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004

This script uses the syntax-file from EditPlus to create UltraEdits syntaxfile. It also assigns UE to the default AHK-Editor.

I've only tested this script with UE 10.20

If it works for you all, it could be included in the release.

Sorry for the delay in replying. I'll include your script in the next release, thanks for creating it.

Feel free to make any desired changes to it before then. For example, if you think it could be simplified to use the Rajat's new master keyword/syntax files (and you have time), that might be good.

Examples in case anyone wants them:
Rajat's conversion script is in \Extras\Editors\Syntax\Scripts\Generate TextPad.ahk
Example installation script: The one for TextPad in \Extras\Editors\TextPad\

By the way Tekl, if you haven't yet read the topic Support for Unicode file and folder names, I'd welcome any comments you might have.

Andreas Borutta
  • Members
  • 46 posts
  • Last active: May 04 2010 08:41 AM
  • Joined: 23 Jan 2005
[Ultraedit as Editor for AHK]

I'll include your script in the next release, thanks for creating it.


I am a new user of AHK and installed the actual version today.

In the folder "[Applicationpath]\Extras\Editors" I couldn't find a script for Ultraedit.

Which steps please do I have to follow exactly to enjoy syntay-highlighting in Ulltraedit for ahk-files?

Thank you.

BoBo
  • Guests
  • Last active:
  • Joined: --
@
Wow. Bin beeindruckt wie professionell/ansprechend Deine Webseiten gestaltet sind. Cool. :D

BoBo
  • Guests
  • Last active:
  • Joined: --
@ Andreas Borutta
das obige statement war an dich gerichtet. Nach dem obigen @ verließ mich wohl die konzentration :roll:

  • Guests
  • Last active:
  • Joined: --

@ Andreas Borutta
das obige statement war an dich gerichtet. Nach dem obigen @ verließ mich wohl die konzentration :roll:

Thanks for your compliment for my pages.
We may better write in English in this forum not to confuse the others :)

Karnin
  • Members
  • 22 posts
  • Last active:
  • Joined: 13 Feb 2005
I did run the above macro for patching the wordfile.txt, thanks to Tekl so far.

But it didn't work for me.......

wordfile.txt is updated by the script as shown:

/L17"AutoHotkey" Nocase Line Comment = ; Escape Char = ` String Chars = % File Extensions = ahk
/Delimiters = ~!@%^&*()-+=`|\/{}[]:;"'<> , .?
/Indent Strings = "{" ":"
/Unindent Strings = "}" "Return"
/Function String = "%[^t ]++^(:++[a-zA-Z0-9_äöüß<>^~!$#+.*^^^[^]]++:+^)"

But syntax highlighting for .AHK does not work even after rebooting. I do not know why because other syntax highlightings are working..... Only the comments and strings are highlighted.

Ultraedit 10.10c german.

Any hint?

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
We could really use a volunteer who's familiar with UltraEdit to expand Tekl's work to use the master syntax files, similar to what is done now for PSPad and TextPad. For details, see the following files in your AutoHotkey folder:

Extras\Editors\TextPad\Run this to install syntax and clip library files for TextPad.ahk
Extras\Editors\Syntax\Scripts\Generate TextPad.ahk

  • Guests
  • Last active:
  • Joined: --

We could really use a volunteer who's familiar with UltraEdit to expand Tekl's work [...]

Hmmm, nobody around reading here, who has a working section for Ultraedits wordfile.txt?
Copy and paste.....

Karnin

danielboukreev
  • Guests
  • Last active:
  • Joined: --
hi

i worked a bit on the script of Tekl (thanks) and modified the section where Tekl gets the workingpath by reading the path out of the registry. had the same problem that the script didnt actualize the wordfile with the entries of the .stx file. Worked fine for my Uedit 10.20c.
RegRead, UeditPath, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\UEDIT32.exe,Path

ifNotExist, %UeditPath%\uedit32.exe
{
   FileSelectFolder, UeditPath,, 0,Select UltraEdit program-folder
}
ifNotExist, %UeditPath%\uedit32.exe
{
   MsgBox, 16,, UltraEdit cannot be found.
   ExitApp
}

UEini = %A_WinDir%\uedit32.ini

IfNotExist, %UEini%
{
   FileSelectFile, UEini, 1, %ProgramFiles%\UltraEdit, Select UltraEdit INI-File, *.ini
}

IniRead, UEwordfile, %UEini%, Settings, Language File

if UEwordfile = ERROR
{
   MsgBox, 16,, Wrong INI-File, missing the Key: Language File
   ExitApp
}
; Get path of AHK Installation
RegRead, ahkpath, HKEY_LOCAL_MACHINE, SOFTWARE\AutoHotKey, InstallDir

AHKwordfilepart = "AutoHotkey" Nocase Line Comment = `; Escape Char = `` String Chars = `% File Extensions = ini ahk`n
AHKwordfilepart = %AHKwordfilepart%/Delimiters = ~!@`%^&*()-+=``|\/{}[]:;"'<> , .? `n
AHKwordfilepart = %AHKwordfilepart%/Indent Strings = "{" ":"`n
AHKwordfilepart = %AHKwordfilepart%/Unindent Strings = "}" "Return"`n
AHKwordfilepart = %AHKwordfilepart%/Function String = "`%[^t ]++^(:++[a-zA-Z0-9_äöüß<>^~!$#+.*^^^[^]]++:+^)"`n

KWcolor = 0
stxfile = %ahkpath%\Extras\Editors\EditPlus\AutoHotkey.stx

IfNotExist, %stxfile%
{
   FileSelectFile, stxfile, 1, %ahkpath%, Select EditPlus stx-File, *.stx
}
ifNotexist, %stxfile%
{
	MsgBox, 16,, stx-file not found
   ExitApp
}

Loop, Read, %stxfile%
{
   StringLeft, KWdef , A_LoopReadLine , 8
   StringMid,  KWname, A_LoopReadLine, 10, 100
   if KWdef = #KEYWORD
   {
      Sort, AHKwordsToSort
      gosub, WordsInOneLine
      AHKwordfilepart = %AHKwordfilepart%%AHKwordsToSort%
      AHKwordsToSort =

      KWcolor += 1
      AHKwordfilepart = %AHKwordfilepart%`n/C%KWcolor%"%KWname%"
      Continue
   }

   if KWcolor = 0
      Continue
   
   StringLeft, KWfirst, A_LOOPREADLINE, 1
   
   if KWfirst = `;
      Continue
     
   Line = %A_LoopReadLine%
   
   if Line = #
      Continue
   
   if KWfirst = ^     
      StringReplace, Line, Line, ^,
 
   AHKwordsToSort =%AHKwordsToSort%`n%Line%
   
}
Sort, AHKwordsToSort
gosub, WordsInOneLine
AHKwordfilepart = %AHKwordfilepart%%AHKwordsToSort%

Loop, Read, %UEwordfile%, UEwordfile.txt
{
   StringLeft, WFdef, A_LoopReadLine, 2
   StringGetPos, WFpos, A_LoopReadLine, "
   WFcolLen = %WFpos%
   WFcolLen -= 2
   StringMid, WFcolor, A_LoopReadLine, 3, %WFcolLen%
   StringSplit, WFname, A_LoopReadLine, "
   
   if WFdef = /L
   {
      WFactName = %WFname2%
      WFactColor = %WFcolor%
      if WFactName = AutoHotkey
      {
         FileAppend, /L%WFactColor%%AHKwordfilepart%
         WFahktrue = 1
      }
   }
   
   if WFactName <> AutoHotkey
   {
      FileAppend, %A_LoopReadLine%`n
   }
}

if WFahktrue <> 1
{
   WFactColor += 1
   FileAppend, /L%WFactColor%%AHKwordfilepart%, UEwordfile.txt
}
If WFactColor > 19
{
   MsgBox, 48,, The wordfile has 20 or more syntax-schemes. UltraEdit does only support 20 schemes.`nPlease delete one scheme from the file!
   FileDelete, UEwordfile.txt
   ExitApp
}

FileCopy, %UEwordfile%, %UEwordfile%.ahk.bak, 1
FileMove, UEwordfile.txt, %UEwordfile%, 1

RegWrite, REG_SZ,HKEY_CLASSES_ROOT,AutoHotkeyScript\Shell\Edit\Command,, %UeditPath%\uedit32.exe "`%1"

if WFahktrue = 1
   MsgBox, 64,, The AutoHotkey-Syntax for UltraEdit has been updated in your actual wordfile!`n`n%UEwordfile%`n`nA backup has been created in the same folder.
else   
   MsgBox, 64,, The AutoHotkey-Syntax for UltraEdit has been added to your actual wordfile!`n%UEwordfile%`n`n`nA backup has been created in the same folder.

Return

WordsInOneLine:
   WordBeg_last =
   Concat =
   Loop, Parse, AHKwordsToSort, `n
   {
      StringLeft, WordBeg, A_LoopField, 1
      If WordBeg = %WordBeg_last%
      {
         AutoTrim, off
         Concat=%Concat%%A_LoopField%%A_Space%
         AutoTrim, on
      }
      else
      {
         AutoTrim, off
         Concat=%Concat%`n%A_LoopField%%A_Space%
         AutoTrim, on
      }
      WordBeg_last = %WordBeg%
   }
   AHKwordsToSort = %Concat%
Return

Dont forget to restart Uedit for a complete reload of wordfile...

regards

daniel

toralf
  • Moderators
  • 4035 posts
  • Last active: Aug 20 2014 04:23 PM
  • Joined: 31 Jan 2005
This is a section taht works for my Ultra Edit

/L10"AutoHotkey" Nocase Line Comment = ; Escape Char = ` String Chars = % File Extensions = ini ahk
/Delimiters = ~!@%^&*()-+=`|\/{}[]:;"'<> , .? 
/Indent Strings = "{" ":"
/Unindent Strings = "}" "Return"
/Function String = "%[^t ]++^(:++[a-zA-Z0-9_äöüß<>^~!$#+.*^^^[^]]++:+^)"

/C1"Commands and Directives"
#AllowSameLineComments #CommentFlag #ErrorStdOut #EscapeChar #HotkeyInterval #HotkeyModIfierTimeout #Hotstring #Include #IncludeAgain #InstallKeybdHook #InstallMouseHook #MaxHotkeysPerInterval #MaxMem #MaxThreads #MaxThreadsBuffer #MaxThreadsPerHotkey #NoTrayIcon #Persistent #SingleInstance #UseHook #WinActivateForce 
AutoTrim 
BlockInput Break 
ClipWait Continue Control ControlClick ControlFocus ControlGet ControlGetFocus ControlGetPos ControlGetText ControlMove ControlSend ControlSendRaw ControlSetText CoordMode 
DetectHiddenText DetectHiddenWindows Drive DriveGet DriveSpaceFree 
Edit Else EndRepeat EnvAdd EnvDiv EnvMult EnvSet EnvSub EnvUpdate Exit ExitApp 
FileAppend FileCopy FileCopyDir FileCreateDir FileCreateShortcut FileDelete FileGetAttrib FileGetShortcut FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileMoveDir FileRead FileReadLine FileRecycle FileRecycleEmpty FileRemoveDir FileSelectFile FileSelectFolder FileSetAttrib FileSetTime FormatTime 
GetKeyState Gosub Goto GroupActivate GroupAdd GroupClose GroupDeactivate Gui GuiControl GuiControlGet 
HideAutoItWin Hotkey 
If IfEqual IfExist IfGreater IfGreaterOrEqual IfInString IfLess IfLessOrEqual IfMsgBox IfNotEqual IfNotExist IfNotInString IfWinActive IfWinExist IfWinNotActive IfWinNotExist IniDelete IniRead IniWrite Input InputBox 
KeyHistory KeyWait 
ListHotkeys ListLines ListVars Loop 
Menu MouseClick MouseClickDrag MouseGetPos MouseMove MsgBox 
OnExit 
Pause PixelGetColor PixElsearch PostMessage Process Progress 
Random RegDelete RegRead RegWrite Reload Repeat Return Run RunAs RunWait 
Send SendMessage SendRaw SetBatchLines SetCapsLockState SetControlDelay SetDefaultMouseSpeed SetEnv SetFormat SetKeyDelay SetMouseDelay SetNumLockState SetScrollLockState SetStoreCapslockMode SetTimer SetTitleMatchMode SetWinDelay SetWorkingDir Shutdown Sleep Sort SoundGet SoundGetWaveVolume SoundPlay SoundSet SoundSetWaveVolume SplashImage SplashTextOff SplashTextOn SplitPath StatusBarGetText StatusBarWait StringCaseSense StringGetPos StringLeft StringLen StringLower StringMid StringReplace StringRight StringSplit StringTrimLeft StringTrimRight StringUpper Suspend SysGet 
Thread ToolTip Transform TrayTip 
URLDownloadToFile 
WinActivate WinActivateBottom WinClose WinGet WinGetActiveStats WinGetActiveTitle WinGetClass WinGetPos WinGetText WinGetTitle WinHide WinKill WinMaximize WinMenuSelectItem WinMinimize WinMinimizeAll WinMinimizeAllUndo WinMove WinRestore WinSet WinSetTitle WinShow WinWait WinWaitActive WinWaitClose WinWaitNotActive 

/C2"Special Keywords"
A_AhkVersion A_AutoTrim A_BatchLines A_CaretX A_CaretY A_ComputerName A_ControlDelay A_Cursor A_DD A_DDD A_DDDD A_DefaultMouseSpeed A_Desktop A_DesktopCommon A_DetectHiddenText A_DetectHiddenWindows A_EndChar A_ExitReason A_FormatFloat A_FormatInteger A_Gui A_GuiControl A_GuiControlEvent A_GuiHeight A_GuiWidth A_Hour A_IconFile A_IconHidden A_IconNumber A_IconTip A_Index A_IPAddress1 A_IPAddress2 A_IPAddress3 A_IPAddress4 A_ISAdmin A_KeyDelay A_Language A_LoopField A_LoopFileAttrib A_LoopFileDir A_LoopFileFullPath A_LoopFileName A_LoopFileShortName A_LoopFileShortPath A_LoopFileSize A_LoopFileSizeKB A_LoopFileSizeMB A_LoopFileTimeAccessed A_LoopFileTimeCreated A_LoopFileTimeModified A_LoopReadLine A_LoopRegKey A_LoopRegName A_LoopRegSubkey A_LoopRegTimeModified A_LoopRegType A_MDAY A_Min A_MM A_MMM A_MMMM A_MON A_MouseDelay A_MyDocuments A_Now A_NowUTC A_NumBatchLines A_OSType A_OSVersion A_PriorHotkey A_ProgramFiles A_Programs A_ProgramsCommon A_ScreenHeight A_ScreenWidth A_ScriptDir A_ScriptFullPath A_ScriptName A_Sec A_Space A_StartMenu A_StartMenuCommon A_Startup A_StartupCommon A_StringCaseSense A_Tab A_ThisHotkey A_ThisMenu A_ThisMenuItem A_ThisMenuItemPos A_TickCount A_TimeIdle A_TimeIdlePhysical A_TimeSincePriorHotkey A_TimeSinceThisHotkey A_TitleMatchMode A_TitleMatchModeSpeed A_UserName A_WDay A_WinDelay A_WinDir A_WorkingDir A_YDay A_YEAR A_YWeek A_YYYY Abort Abs ACos Add Alnum Alpha AltSubmit AltTab AltTabAndMenu AltTabMenu AltTabMenuDismiss AlwaysOnTop Asc ASin ATan 
Background Between BitAnd BitNot BitOr BitShiftLeft BitShiftRight BitXOr Border Bottom Bottom Button Buttons 
Cancel Cancel Capacity Caption Ceil Center Center Check Check3 Checkbox Checked CheckedGray Choose ChooseString Chr Click Clipboard Close Color ComboBox ControlList Cos Count 
Date Days DDL Default Delete DeleteAll Deref Destroy Digit Disable Disabled DropDownList 
Eject Enable Enabled Error ErrorLevel Exp ExStyle 
FileSystem Flash Float Floor Focus Font 
Group GroupBox 
Hidden Hide HKCC HKCR HKCU HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS HKLM HKU Hours HScroll 
Icon ID IDLast Ignore In Integer 
Label Label Left Limit List ListBox Ln Lock Log Logoff Lower Lowercase 
MainWindow MaximizeBox MinimizeBox MinMax Minutes Mod MOUSE Move Multi 
No NoDefault NoHide NoIcon NoMainWindow NoStandard NoTab Number Number 
Ok Owner 
Parse Password Password Pic Picture PIXEL Pos Pow ProcessName 
Radio Read ReadOnly REG_BINARY REG_DWORD REG_EXPAND_SZ REG_MULTI_SZ REG_SZ RELATIVE Rename Resize Retry RGB Right Round 
SCREEN Seconds Section Section Serial SetLabel ShiftAltTab Show Sin Single Slider Sqrt Standard Status StatusCD Style Submit SysMenu 
Tab TabStop Tan Text Text Theme Time Tip ToggleCheck ToggleEnable ToolWindow Top Topmost TransColor Transparent Tray Type 
UnCheck Unicode Unlock Upper Uppercase UseErrorLevel 
Visible VScroll 
WantReturn Wrap 
Xdigit 
Yes 

/C3"Key Codes"
Alt AltDown AltUp AppsKey 
BackSpace Browser_Back Browser_Favorites Browser_Forward Browser_Home Browser_Refresh Browser_Search Browser_Stop BS 
CapsLock Control Ctrl CtrlBreak CtrlDown CtrlUp 
Del Delete Down 
End Enter Esc Escape 
F1 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F2 F20 F21 F22 F23 F24 F3 F4 F5 F6 F7 F8 F9 
Home 
Ins Insert 
Joy1 Joy10 Joy11 Joy12 Joy13 Joy14 Joy15 Joy16 Joy17 Joy18 Joy19 Joy2 Joy20 Joy21 Joy22 Joy23 Joy24 Joy25 Joy26 Joy27 Joy28 Joy29 Joy3 Joy30 Joy31 Joy32 Joy4 Joy5 Joy6 Joy7 Joy8 Joy9 JoyAxes JoyButtons JoyInfo JoyName JoyPOV JoyR JoyU JoyV JoyX JoyY JoyZ 
LAlt Launch_App1 Launch_App2 Launch_Mail Launch_Media LButton LControl LCtrl Left LShift LWin LWinDown 
MButton Media_Next Media_Play_Pause Media_Prev Media_Stop 
NumLock Numpad0 Numpad1 Numpad2 Numpad3 Numpad4 Numpad5 Numpad6 Numpad7 Numpad8 Numpad9 NumpadAdd NumpadClear NumpadDel NumpadDiv NumpadDot NumpadDown NumpadEnd NumpadEnter NumpadHome NumpadIns NumpadLeft NumpadMult NumpadPgdn NumpadPgup NumpadRight NumpadSub NumpadUp 
Pause PGDN PGUP PrintScreen 
RAlt RButton RControl RCtrl Right RShift RWin RWinDown 
ScrollLock Shift ShiftDown ShiftUp Space 
Tab 
Up 
Volume_Down Volume_Mute Volume_Up 
WheelDown WheelUp 
XButton1 XButton2 
{!} {#} {$} {+} {^} {`} {AltDown} {AltUp} {Alt} {AppsKey} {BackSpace} {Browser_Back} {Browser_Favorites} {Browser_Forward} {Browser_Home} {Browser_Refresh} {Browser_Search} {Browser_Stop} {BS} {CapsLock} {Control} {CtrlBreak} {CtrlDown} {CtrlUp} {Ctrl} {Delete} {Del} {Down} {End} {Enter} {Escape} {Esc} {F10} {F11} {F12} {F13} {F14} {F15} {F16} {F17} {F18} {F19} {F1} {F20} {F21} {F22} {F23} {F24} {F2} {F3} {F4} {F5} {F6} {F7} {F8} {F9} {Home} {Insert} {Ins} {Joy10} {Joy11} {Joy12} {Joy13} {Joy14} {Joy15} {Joy16} {Joy17} {Joy18} {Joy19} {Joy1} {Joy20} {Joy21} {Joy22} {Joy23} {Joy24} {Joy25} {Joy26} {Joy27} {Joy28} {Joy29} {Joy2} {Joy30} {Joy31} {Joy32} {Joy3} {Joy4} {Joy5} {Joy6} {Joy7} {Joy8} {Joy9} {JoyAxes} {JoyButtons} {JoyInfo} {JoyName} {JoyPOV} {JoyR} {JoyU} {JoyV} {JoyX} {JoyY} {JoyZ} {LAlt} {Launch_App1} {Launch_App2} {Launch_Mail} {Launch_Media} {LButton} {LControl} {LCtrl} {Left} {LShift} {LWinDown} {LWin} {MButton} {Media_Next} {Media_Play_Pause} {Media_Prev} {Media_Stop} {NumLock} {Numpad0} {Numpad1} {Numpad2} {Numpad3} {Numpad4} {Numpad5} {Numpad6} {Numpad7} {Numpad8} {Numpad9} {NumpadAdd} {NumpadClear} {NumpadDel} {NumpadDiv} {NumpadDot} {NumpadDown} {NumpadEnd} {NumpadEnter} {NumpadHome} {NumpadIns} {NumpadLeft} {NumpadMult} {NumpadPgdn} {NumpadPgup} {NumpadRight} {NumpadSub} {NumpadUp} {Pause} {PGDN} {PGUP} {PrintScreen} {RAlt} {RButton} {RControl} {RCtrl} {Right} {RShift} {RWinDown} {RWin} {ScrollLock} {ShiftDown} {ShiftUp} {Shift} {Space} {Tab} {Up} {Volume_Down} {Volume_Mute} {Volume_Up} {WheelDown} {WheelUp} {XButton1} {XButton2} {~} 

Ciao
toralf
 
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.

Andreas Borutta
  • Members
  • 46 posts
  • Last active: May 04 2010 08:41 AM
  • Joined: 23 Jan 2005

This is a section taht works for my Ultra Edit

[...]

Do you just have to copy & paste the code to the end of wordfile.txt to get a syntaxhightlighting for ahk?

Or are there any other steps necessary?

What exactly does the skript of danielboukreev and which advantages does it have in comparison to add something to wordfile.txt?