Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Crimson Editor - AHK Syntax Highlighting


  • Please log in to reply
19 replies to this topic
BoBo
  • Guests
  • Last active:
  • Joined: --
[Crimson Editor Syntax Files]
Might be of use. Not checked if up to date. Check it out. 8)

AHKnow*
  • Guests
  • Last active:
  • Joined: --
Just wanted to mention that maybe these should be included with the distro of AutoHotkey.

Crimson Editor is like a freeware version of EditPlus (which cost about $30 dollars). I suppose Crimson Editor does not get that much attention, because the author updates it only once a year or every 2 years and does not come around much. Despite that, Crimson Editor has very much kept pace with the popular EditPlus (which makes you wonder what the EditPlus people are doing to not be more advanced). Just about anything that you can do with EditPlus, you can do with Crimson Editor. If you are bored, you could do a "side by side" comparison.

So, If EditPlus files are included with AutoHotkey, then maybe so should Crimson Editor files.

Maybe the best thing about Crimson Editor is that its easy to configure, without/with no programming. You can create "tool groups" (somewhat like EditPlus's tool groups) and have Intellisense, AutoHotkey Window Info, etc... You can also create groups for JScript, VBscript, etc...

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Thanks; somehow I missed this topic when it was originally posted.

I've made a note to update the syntax file someday and try to include it in the Extras folder. However, I'd certainly appreciate it if there is some user of Crimson Editor who wouldn't mind testing, reviewing, and updating it.

n00kie
  • Members
  • 5 posts
  • Last active: Apr 25 2006 07:37 PM
  • Joined: 15 Apr 2006
I just downloaded the syntax files and gave it a summary look and I like it, it looks pretty good and there are no noticeable inconsistencies on first glance. Will keep you posted.

LE1: except that I can't get crimson to recognize the file type on start-up and apply the necessary syntax highlighting.
LE2: got it. I'll have a script posted by Monday at noon.
LE3: Done. Installer/uninstaller can be found here [CrimsonEditor.com]

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Thanks a lot. I'll try to get this into the Installer's Extras folder soon.

not-logged-in-daonlyfreez
  • Guests
  • Last active:
  • Joined: --
Great! I created the 'original' a long time ago... Good to have an update, will test later...

8)

Pleeeeeease
  • Guests
  • Last active:
  • Joined: --
Hello, I don't suppose anyone has these AHK syntax files for Crimson Editor, that they could re-host somewhere? The author seems to have ditched the forum and the links are dead. Pleeeeeease! TIA

Z Gecko
  • Guests
  • Last active:
  • Joined: --
i use the folowing files from daonlyfreez:
autohotkey.key
[-COMMENT-:GLOBAL]
# AutoHotkey language keywords file for Crimson Editor
#
# first edited for version 10.30.04 by daonlyfreez on 2005-04-02
#
# AutoHotkey is a free scripting language for the windows platform
# available at: http://www.autohotkey.com

[KEYWORDS0]

# AutoHotkey commands
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
ImageSearch
IniDelete
IniRead
IniWrite
Input
InputBox
Is
KeyHistory
KeyWait
ListHotkeys
ListLines
ListVars
Loop
Loop, FilePattern
Loop, Parse
Loop, Read
Loop, Reg
Menu
MouseClick
MouseClickDrag
MouseGetPos
MouseMove
MsgBox
OnExit
OutputDebug
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
SoundBeep
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

[KEYWORDS1]

# AutoHotkey variables
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_IsCompiled
A_IsSuspended
A_KeyDelay
A_Language
A_LoopField
A_LoopFileAttrib
A_LoopFileDir
A_LoopFileFullPath
A_LoopFileLongPath
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_MSec
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
Clipboard
ClipboardAll
ErrorLevel
True
False

# DOS/System variables
ALLUSERSPROFILE
APPDATA
CD
CMDCMDLINE
CMDEXTVERSION
COMMONPROGRAMFILES
COMPUTERNAME
COMSPEC
DATE
ERRORLEVEL
HOMEDRIVE
HOMEPATH
HOMESHARE
LANGUAGE
LOGONSERVER
NUMBER_OF_PROCESSORS
OS
PATH
PATHEXT
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMFILES
PROMPT
RANDOM
SYSTEMDRIVE
SYSTEMROOT
TEMP
TMP
TIME
USERDOMAIN
USERNAME
USERPROFILE
WINDIR

[KEYWORDS2]

# AutoHotkey keys
^ # + ! ~ $ `
Shift
LShift
RShift
Alt
LAlt
RAlt
Control
LControl
RControl
Ctrl
LCtrl
RCtrl
LWin
RWin
AppsKey

AltDown
AltUp
ShiftDown
ShiftUp
CtrlDown
CtrlUp
LWinDown
RWinDown

LButton
RButton
MButton
WheelUp
WheelDown
XButton1
XButton2

Joy1
Joy2
Joy3
Joy4
Joy5
Joy6
Joy7
Joy8
Joy9
Joy10
Joy11
Joy12
Joy13
Joy14
Joy15
Joy16
Joy17
Joy18
Joy19
Joy20
Joy21
Joy22
Joy23
Joy24
Joy25
Joy26
Joy27
Joy28
Joy29
Joy30
Joy31
Joy32
JoyX
JoyY
JoyZ
JoyR
JoyU
JoyV
JoyPOV
JoyName
JoyButtons
JoyAxes
JoyInfo

Space
Tab
Enter

Escape
Esc
BackSpace
BS
Delete
Del
Insert
Ins
PGUP
PGDN
Home
End
Up
Down
Left
Right

PrintScreen
CtrlBreak
Pause
ScrollLock
CapsLock
NumLock

Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
NumpadMult
NumpadAdd
NumpadSub
NumpadDiv
NumpadDot
NumpadDel
NumpadIns
NumpadClear
NumpadUp
NumpadDown
NumpadLeft
NumpadRight
NumpadHome
NumpadEnd
NumpadPgup
NumpadPgdn
NumpadEnter

F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24

Browser_Back
Browser_Forward
Browser_Refresh
Browser_Stop
Browser_Search
Browser_Favorites
Browser_Home
Volume_Mute
Volume_Down
Volume_Up
Media_Next
Media_Prev
Media_Stop
Media_Play_Pause
Launch_Mail
Launch_Media
Launch_App1
Launch_App2

[KEYWORDS3]

# AutoHotkey special
thisisadummy #AllowSameLineComments #CommentFlag #ErrorStdOut #EscapeChar #HotkeyInterval #HotkeyModifierTimeout #Hotstring #Include #IncludeAgain#InstallKeybdHook #InstallMouseHook #KeyHistory #MaxHotkeysPerInterval #MaxMem #MaxThreads #MaxThreadsBuffer #MaxThreadsPerHotkey #NoTrayIcon #Persistent #SingleInstance #UseHook #WinActivateForce

# AutoIt 2.x special
# NOT supported in AutoHotkey
adlib
hideautoitdebug

[KEYWORDS4]

# AutoHotkey keywords

# Used with CoordMode or PixelXXX commands:
PIXEL
MOUSE
SCREEN
RELATIVE
RGB

# Keywords inside the WinTitle parameter of various commands:
ahk_id
ahk_pid
ahk_class
ahk_group

# Used with SetFormat and/or "if Var is [not] type" & BETWEEN/IN
Between
In
Integer
Float
Number
Digit
Xdigit
Alpha
Upper
Lower
Alnum
Time
Date
# Omitted because it's a key name too: SPACE

# Used with Drive/DriveGet and/or WinGet/WinSet:
AlwaysOnTop
Topmost
Bottom
Transparent
TransColor
Redraw
Region
ID
IDLast
ProcessName
MinMax
ControlList
Count
List
Capacity
StatusCD
Eject
Lock
Unlock
Label
FileSystem
Label
SetLabel
Serial
Type
Status

# Time units for use with addition and subtraction:
Seconds
Minutes
Hours
Days

# For use with the Loop command:
Read
Parse

# A_ExitReason
Logoff
Close
Error
Single
# The following are commented  out because they are already keywords due to being commands:
#Shutdown
#Menu
#Exit
#Reload

# Keywords used with the "menu" command:
Tray
Add
Rename
Check
UnCheck
ToggleCheck
Enable
Disable
ToggleEnable
Default
NoDefault
Standard
NoStandard
Color
Delete
DeleteAll
Icon
NoIcon
Tip
Click
Show
MainWindow
NoMainWindow
UseErrorLevel

# Keywords used with GUI:
Font
Resize
Owner
Submit
NoHide
Minimize
Maximize
Restore
NoActivate
NA
Cancel
Destroy
Center
Text
Picture
Pic
GroupBox
Button
Checkbox
Radio
DropDownList
DDL
ComboBox
ListBox
Slider
Tab
TabStop
Section
AltSubmit
Wrap
HScroll
VScroll
Border
Top
Bottom
Buttons
Number
Uppercase
Lowercase
Limit
Password
Multi
WantReturn
Group
Background
Theme
Caption
MinimizeBox
MaximizeBox
SysMenu
ToolWindow
Flash
Style
ExStyle
Check3
Checked
CheckedGray
ReadOnly
Password
Hidden
Left
Right
Center
NoTab
Section
Move
Focus
Hide
Choose
ChooseString
Text
Pos
Enabled
Disabled
Visible
LastFound

# Note that Edit, Progress and Hotkey aren't included since they are already command keywords.

# Already included with menu:
#Show
#Menu
#Color
#Edit
#Default
#Enable
#Disable
#Default

# Keywords used with the Transform  command:
Unicode
Asc
Chr
Deref
Mod
Pow
Exp
Sqrt
Log
Ln
Round
Ceil
Floor
Abs
Sin
Cos
Tan
ASin
ACos
ATan
BitNot
BitAnd
BitOr
BitXOr
BitShiftLeft
BitShiftRight

[KEYWORDS5]

# Keywords used with the Hotkey command:
AltTab
ShiftAltTab
AltTabMenu
AltTabAndMenu
AltTabMenuDismiss

[KEYWORDS6]

# Common Keywords:
On
Off
Yes
No
Ok
Cancel
Abort
Retry
Ignore
Force

[KEYWORDS7]

# Registry root keys:
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_USER
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKLM
HKU
HKCU
HKCR
HKCC

# Registry value types:
REG_SZ
REG_EXPAND_SZ
REG_MULTI_SZ
REG_DWORD
REG_BINARY

[KEYWORDS8]

[KEYWORDS9]
autohotkey.spc
# AutoHotkey language keywords file for Crimson Editor
#
# first edited for version 10.30.04 by daonlyfreez on 2005-04-02
#
# AutoHotkey is a free scripting language for the windows platform
# available at: http://www.autohotkey.com

$CASESENSITIVE=NO
$DELIMITERS=+-=/*{}"',<>.\|:`
$KEYWORDPREFIX=
$VARIABLEPREFIX=%
$HEXADECIMALMARK=0x
$ESCAPECHAR=`
$QUOTATIONMARK1="
$QUOTATIONMARK2='
$LINECOMMENT=;
#$HIGHLIGHTON=:#!^+<>*~$
#$HIGHLIGHTOFF=:
$BLOCKCOMMENTON=/*
$BLOCKCOMMENTOFF=*/
$INDENTATIONON={
$INDENTATIONOFF=}
$PAIRS1={}


Pleeeeeease
  • Guests
  • Last active:
  • Joined: --
That's marvellous, thank you!

Brandon loves sirens
  • Guests
  • Last active:
  • Joined: --

[Crimson Editor Syntax Files]
Might be of use. Not checked if up to date. Check it out. 8)

ERROR!!!! :x :evil:

n-l-i-d
  • Guests
  • Last active:
  • Joined: --
@Brandon: You can copy the files from the above posting. Just be aware that the lines that start with # are comments for Crimson Editor, but AutoHotkey uses # for it's directives, so there are "special" lines in the syntax files that start with a dummy to make it work, you have to make sure those lines (with the # keywords) are one line behind the dummy keyword, then it should work.

This has not been updated in a while though (I created the original)

HTH

Skyglider
  • Members
  • 40 posts
  • Last active: Jul 17 2009 01:18 AM
  • Joined: 29 Jun 2008

@Brandon: You can copy the files from the above posting. Just be aware that the lines that start with # are comments for Crimson Editor, but AutoHotkey uses # for it's directives, so there are "special" lines in the syntax files that start with a dummy to make it work, you have to make sure those lines (with the # keywords) are one line behind the dummy keyword, then it should work.

This has not been updated in a while though (I created the original)

HTH

Could you please provide an example of the special dummy lines followed by the # keyword lines? I don't have a clue as to what to do.

Thanks.

haichen
  • Members
  • 200 posts
  • Last active: Oct 20 2013 01:14 PM
  • Joined: 05 Feb 2007
The two files work without problem.
Thanks :D

n-l-i-d
  • Guests
  • Last active:
  • Joined: --
Ok, it is only one instance in the autohotkey.key file (I should have checked), just make sure your copying line breaks don't mess up this one:

[KEYWORDS3]

# AutoHotkey special
thisisadummy #AllowSameLineComments #CommentFlag #ErrorStdOut #EscapeChar #HotkeyInterval #HotkeyModifierTimeout #Hotstring #Include #IncludeAgain#InstallKeybdHook #InstallMouseHook #KeyHistory #MaxHotkeysPerInterval #MaxMem #MaxThreads #MaxThreadsBuffer #MaxThreadsPerHotkey #NoTrayIcon #Persistent #SingleInstance #UseHook #WinActivateForce


so, the one-liner starts with "thisisadummy"

Skyglider
  • Members
  • 40 posts
  • Last active: Jul 17 2009 01:18 AM
  • Joined: 29 Jun 2008

Ok, it is only one instance in the autohotkey.key file (I should have checked), just make sure your copying line breaks don't mess up this one:

[KEYWORDS3]

# AutoHotkey special
thisisadummy #AllowSameLineComments #CommentFlag #ErrorStdOut #EscapeChar #HotkeyInterval #HotkeyModifierTimeout #Hotstring #Include #IncludeAgain#InstallKeybdHook #InstallMouseHook #KeyHistory #MaxHotkeysPerInterval #MaxMem #MaxThreads #MaxThreadsBuffer #MaxThreadsPerHotkey #NoTrayIcon #Persistent #SingleInstance #UseHook #WinActivateForce


so, the one-liner starts with "thisisadummy"

I came to this thread to cancel my request but you already posted. Thank you very much for your time but I've decided to go with Notepad++ since support for Crimson seems to have been abandoned by its creator.

Thanks,
Skyglider