Crimson Editor syntax files (SPC and KEY)

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Crimson Editor syntax files (SPC and KEY)

Post by Mckorr » Tue Oct 07, 2003 2:12 pm

I find myself using Crimson Editor (http://www.crimsoneditor.com) a lot at work for quick code editing, so figured I'd whip up syntax files for it. Here are the SPC (language specification) and KEY (language keyword) files I've come up with:

Code: Select all

# MacroQuest Macro Specification File for Crimson Editor
# mac.spc

$CASESENSITIVE=YES
$DELIMITERS=<>=~!@%^&()+{}[];"'     ,?
$KEYWORDPREFIX=/
$HEXADECIMALMARK=0x
$QUOTATIONMARK1="
$QUOTATIONMARK2='
$LINECOMMENT=|
$BLOCKCOMMENTON=|**
$BLOCKCOMMENTOFF=**|
$INDENTATIONON={
$INDENTATIONOFF=}
$INDENTATIONON=sub
$INDENTATIONOFF=/return
$PAIRS1=()
$PAIRS2=[]
$PAIRS3={}

Code: Select all

[-COMMENT-:GLOBAL]
# MACROQUEST MACRO LANGUAGE KEYWORDS FILE FOR CRIMSON EDITOR
# mac.key


[KEYWORDS0:GLOBAL]
/alert /alias /beep
/breakin
/call /cleanup /click /commands
/delay /declare /doevents /doors /doortarget
/echo /endmacro
/face /filter /finditem /for
/goto
/identify /if /items /itemtarget
/listmacros
/macro /mem /merchant /mouseto /mqlog /mqpause /msgbox
/next /perl /press
/return
/sendkey /seterror /seterror /skills /spewfile
/telnet #turbo
/unload
/varadd /varcalc /varset /varsub
/where
/zapvars
downto else Event_Chat Event_ Event_Timer main n sub to global local timer array array2

[KEYWORDS1:GLOBAL]
$a $abs $acos $alert $arg $asin $atan $calc $char $combat $cos $count $cursor $date $distance $door $find
$freeinv $getlasterror $gm $ground $group $heading $id $if $instr $int $invpanel $item $lastcommand $lasttell
$lcase $left $merchant $mid $mouse $p $pack $pack $rand $return $right $running $sin $spawn $spell $strlen
$t $tan $target $time $ucase $v $zone
** $ #

[KEYWORDS2:GLOBAL]
/anon /a /afk /assist /attack /auction /autojoin /autosplit /autoinv /book /bug /camp /cast /channel /chatfontsize
/consent /corpse /decline /disband /dismount /doability /duel /d /dynamiclights /em /exit /facepick /fastdrop
/feedback /filter /follow /friend /gems /gsay /g /guildsay /gu /guildinvite /guildremove /guilddelete
/guildstatus /guildleader /guildwar /guildpeace /guildmotd /help /hidecorpses /hslider /ignore /inspect
/invite /invwinlabels /language /lfg /log /location /loc /loot /lootnodrop /mcicontrol /me /mousespeed
/msg /note /ooc /pet /petition /played /quit /random /reply /report /resetwindows /reverb /reversesound
/roleplay /rol /serverfilter /shout /shownames /showspelleffects /sit /split /stand /stopsong /surname
/target /targetgroupbuff /tell /time /trackfilter /trackplayers /tracksort /usercolor /vrdelay /who /whotarget
/wincolor /yell

[KEYWORDS3:GLOBAL]
/Agree /Amaze /Apologize /Applaud /Bite /Bleed /Blink /Blush /Boggle /Bonk /Bored /Bow /Brb /Burp /Bye
/Cackle /Calm /Cheer /Clap /Comfort /Congratulate /Cough /Cringe /Cry /Curious /Dance /Drool /Duck /Eye
/Fidget /Flex /Gasp /Giggle /Glare /Grin /Groan /Grovel /Happy /Hungry /Introduce /Jk /Kneel /Lost
/Massage /Moan /Mourn /Nod /Nudge /Panic /Pat /Peer /Plead /Point /Ponder /Purr /Puzzle /Raise /Ready
/Roar /Rofl /Salute /Shiver /Shrug /Sigh /Smack /Smirk /Snarl /Snicker /Stare /Tap /Tease /Thank /Thirsty
/Veto /Wave /Welcome /Whine /Whistle /Yawn

[KEYWORDS4:GLOBAL]

[KEYWORDS5:GLOBAL]

[KEYWORDS6:GLOBAL]

[KEYWORDS7:GLOBAL]

[KEYWORDS8:GLOBAL]
aa ability add alert all allbutgroup ALWAYS ammo arms as attack auto away back bank birth Blue book bound
buff cash cdaudio chest class clean clear combine Consider copper corpse cur defaultheading defaultx
defaulty defaultz delete desktop destroy distance done door down e ear1 ear2 eject empty enchanced encumber
enviro equip exp face fast feet finger1 finger2 flush follow food gem gender get gm gold Green guard guild
hands has head heading headingto health held here hotkey hslider hp id increase ismoving item left legs
level light list loc look lore lost m macros magic mana master max me merchant money mycorpse myself name
nearalert neck NEVER next noalert noarrays nodrop none nopredict norent Normal notaunt notid notimers
notnearalert novars npc npctrade off OFF on ON open pack pause pct pet plat play prev primary race radius range
ranged right Rconsider Rdistance Red report s secondary server shoulder silver similar sit size skill
skills slot slots SOMETIMES space speed stack stamina stand state step stop surname target taunt trader
type up value waist weight were White wrist1 wrist2 x y Yellow you
Be warned, it's quite... colorful :D
MQ2: Think of it as Evolution in action.

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

Post by Shocks » Tue Oct 07, 2003 6:25 pm

Thanks Mckorr very nice.

Consilium
Contributing Member
Contributing Member
Posts: 100
Joined: Wed Oct 02, 2002 10:42 pm

Post by Consilium » Wed Oct 08, 2003 11:46 pm

Very nice.. thank you. Only problem I have is that even commented lines get color coding... is it possible to make this not so?

I have been using UltraEdit and have found that not being able to use the scroll button on my mouse is anoying...nice to see that this program allows that.
-SH
+Student
digitalsavior.com

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Oct 09, 2003 8:43 am

The color coding is kind of built in for comments. I did find that I missed a few things, especially where upper and lower case is concerned. Turns out it will tag "ON" but not "on", that kind of thing. Been tweaking it here and there as I work on converting macros.

Will see what I can do, and post an update as I fix things.
MQ2: Think of it as Evolution in action.