UltraEdit Syntax Highlighting

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

UltraEdit Syntax Highlighting

Post by TheAFKBard » Fri Feb 06, 2004 5:54 pm

Just append this to wordfile.txt in your UltraEdit directory. This assumes you already have 9 language definitions. Change the first /L## to whatever your next available definition is.
Edited: Props to GrimJack for some stuff I missed

Code: Select all

/L10"Macroquest" Nocase Line Comment = | Block Comment On = |* Block Comment Off = *| Escape Char = \ String Chars = "' File Extensions = MAC INC
/Delimiters = <>=~!@%^&()+{}[];"'	 ,?
/Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&, ^t^[^]a-zA-Z_0-9.!]++)[~;]"
/Function String 1 = "%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[ ^t^p]++([^p*&, ^t^[^]/*=:&a-zA-Z_0-9./(!]++)[~;]"
/Function String 2 = "%[a-zA-Z_0-9^][a-zA-Z_0-9^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 3 = "%[a-zA-Z_0-9*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 4 = "%[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-z_0-9./(!]++)[~;]"
/Function String 5 = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./()!]++)[~;]"
/Indent Strings = "{" ":"
/Unindent Strings = "}"
/C1"Commands"
// /alert /alias
// /breakin /banklist /beep /buyitem
// /call /cast /charinfo /click
// /declare /delay /destroy /doevents /doors /doortarget
// /echo /editmacro /endmacro
// /face /filter /finditem /for
// /goto
// /help
// /identify /if /ini /items /itemtarget
// /keepkeys
// /listmacros /loadspells /location /loginname /look
// /macro /mapfilter /maxfps /memspell /mouseclickl /mouseclickr /mouseto /mqlog /mqpause
// /press
// /return
// /selectitem /sellitem /sendkey /setautorun /seterror /shout /skills /spew
// /telnet /target
// /unload /updateitems
// /varadd /varand /varcalc /varcat /varlshift /varor /varrshift /varset /varsub
// /where /who /whofilter /whotarget /windowstate
// /zapvars /zem
/C2"Variables"
$abs $acos $alert $arg $asin $atan
$banker
$char $combat $corpse $cos $count $cursor
$date $dec $defined $distance $door
$envopen $equip
$find $freeinv
$gamestate $getlasterror $getlastfindslot $gm $ground $group
$heading $hex
$id $if $ini $instr $int $invpanel $item 
$lastcommand $lasttell $lcase $left $loginname
$macro $merchant $mid $mouse
$pack
$rand $return $right $running
$searchspawn $selecteditem $sin $spawn $spell $strlen
$tan $target $time
$ucase
$zone
/C3"EQ Commands"
// /adriver /afk /anon /assist /auction /autosplit /autoinventory /attack
// /book /bug
// /camp /cast /channel /charinfo /chatfontsize /consent /consider /corpse
// /decline /disband /doability /duck /duel /dynamiclights /destroy
// /emote /exit
// /fastdrop /feedback /filter /follow /friend /ftell
// /g /gems /getguildmotd /gsay /guilddelete /guildinvite /guildmotd /guildpeace /guildleader /guildremove /guildsay /guildstatus /guildwar
// /help /hidecorpses
// /ignore /inspect /invite /invwinlabels
// /language /lfg /log /loc /loot /lootnodrop
// /mcicontrol /mousespeed /msg
// /note
// /ooc
// /pet /petition /played
// /quit
// /random /reply /report /resetwindows /reverb /reversesound /roleplay
// /say /sdriver /serverfilter /shout /shownames /shownpcnames /showspelleffects /sit /split /stopsong /surname
// /tell /time /toggleinspect /trackfilter /trackplayers /tracksort
// /usecolor
// /vrdelay
// /who
// /yell
/C4"Operators"
+
-
=
// /
%
&
>
<
==
!=
>=
<=
~~
!~
\
^
||
/C5"Macro Keywords"
aa ability add alert all ammo any arms array array2 auto 
back bank birth book bound buff buy 
castradius casttime charm chest class clear color combine concolor corpse count cur 
debug defaultheading defaultx defaulty defaultz distance done door down duration 
ear1 ear2 else encumber enhanced enviro 
face fast feet finger1 finger2 food 
gem gender give global gold gm ground guild 
h hands head heading headingto held hotkey hp hslider 
id increased inv item 
left leggs level lfg light list loc local look lore 
m macro magic main mana map master max merchant money mycasttime mycorpse myself 
n name npc neck next noalert noarrays nodrop none nopcnear nopredict norent notid notimers novars npctrade nearalert notnearalert 
off on open 
pack pc pct pet plat position previous predict primary 
race radius range ranged recasttime recoverytime remove right 
s secondary sell shoulder silver size shield slot skills speed spell spellbook stack stamina state spawnradius 
target timer to trigger type 
up 
value vector 
waist weight wrist1 wrist2 
x 
y 
z zradius zrange 
** Event_ 
/C6"EQ Emotes" 
// /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 
/C7"Functions" 
** :
/C8"Pre-Processor" 
#turbo 
#define 
#include 
#event 
#chat 
This doesn't work perfectly, but it's a step in the right direction.

TheAFKBard
a ghoul
a ghoul
Posts: 133
Joined: Tue Dec 30, 2003 9:48 pm

Post by TheAFKBard » Fri Feb 06, 2004 8:51 pm

Thanks to kirre's prodding, I've made some changes.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sat Feb 07, 2004 1:15 am

Is this one better than this one? http://macroquest2.com/phpBB2/viewtopic.php?t=3232

I haven't really looked at them to compare.

kirre
orc pawn
orc pawn
Posts: 16
Joined: Wed Dec 17, 2003 1:53 am

Post by kirre » Sun Feb 08, 2004 4:46 am

Plugh took the One you listed thier of GrimJack's and updated it essentionaly (spelt wrong i bet), so this one is more up to date.

chow
kirre

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sun Feb 08, 2004 4:55 pm

Nice.

CheckinThingsOut
a ghoul
a ghoul
Posts: 81
Joined: Wed Jun 30, 2004 3:11 pm

Post by CheckinThingsOut » Mon Sep 27, 2004 2:47 pm

Digging through all of the UltraEdit highlighting examples, this one still appears to be the best so far even though it's in the MQ1 area. I've added edited it to fit some stuff with the newer MQ2 but I still have one issue. I can't get || to be recognized as an operator. Anyone have a way to make it work because I've tried everything.