Page 1 of 1

Ultraedit syntax file

Posted: Fri Oct 03, 2003 1:40 am
by grimjack
Most keywords are in there and the new user defined variables should show up as their own color.

Code: Select all

/L10"MacroQuest" Nocase Line Comment = | Block Comment On = |** Block Comment Off = **| String Chars = "' File Extensions = MAC INC
/Delimiters = <>=~!@%^&()+{}[];"'     ,?
/C1"Pre-Processor"
#turbo
#define
#include
#event
#chat
/C2"MQ Commands"
// /alert /alias /beep
// /breakin /buyitem
// /call /cast /cleanup /click /commands
// /declare /delay /doability /doevents /doors /doortarget 
// /echo /end /endmacro
// /face /filter /finditem /for
// /goto
// /identify /if /items /itemtarget
// /lclicktarget /listmacros
// /macro /mapfilter /mem /memspell /merchant /mouseto /mqlog /mqpause /msgbox
// /next /perl /press
// /return /rclicktarget
// /sendkey /sellitem /seterror /seterror /skills /spewfile
// /telnet
// /unload
// /varadd /varcalc /varcat /varset /varsub
// /where
// /zapvars
sub
/C3"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_
/C4"Macro Vars"
$a $abs $acos $alert $arg $asin $atan 
$calc $char $combat $corpse $cos $count $cursor 
$date $defined $distance $door 
$envopen
$find $freeinv $freespace
$getlasterror $giveopen $gm $ground $group 
$heading 
$id $if $instr $int $invpanel $item 
$lastcommand $lasttell $lcase $left 
$merchant $mid $mouse 
$pack $pack 
$rand $return $right $running 
$searchspawn $selecteditem $selectedtarget $sin $spawn $spell $strlen
$t $tan $target $time 
$ucase 
$v 
$zone
/C5"User Vars"
** @
/C6"EQ Commands"
// /anon /a /afk /assist /attack /auction /autoinventory /autojoin /autosplit 
// /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 /memspellset /mousespeed /msg 
// /note 
// /ooc /open
// /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
/C7"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
/C8"Functions"
** : 
Thanks
GrimJack

Posted: Fri Oct 03, 2003 9:12 am
by Mckorr
Thanks Grim. I keep meaning to get a copy of UltraEdit :)

Posted: Fri Oct 03, 2003 9:59 am
by MQSEQ
We need to add the /autoinventory command in the EQ command section. It appears that folks are going to start using that vs. /click left auto

http://www.ultraedit.com

UltraEdit is a great tool to have with it's own macro language you can create a base shell for MQ macro's then have smaller macro's to create different routines. Basically saves you alot of time on editing files.

Posted: Fri Oct 03, 2003 10:19 am
by Mckorr
Got it, now just gotta figure out how to use the syntax files :) I know the instructions are posted around here someplace :)

Posted: Fri Oct 03, 2003 10:37 am
by MQSEQ
Follow this link http://macroquest2.com/phpBB2/viewtopic.php?t=1974

To use the color Syntax go to View then View File as Macroquest, That will cause it to colorize it.

was working on this

Posted: Thu Oct 09, 2003 2:06 am
by Consilium
Was just working on this lol... thanks for saving me some time!

Posted: Wed Jan 21, 2004 10:39 am
by ztilleto
Thanks GrimJack.

Just some info for those who might not be using UE with the tab to space convertion.. This could result in your code not displaying prober highlighting when tabing.

When insterting the syntax into the wordfile of UE, just edit this current line.

Code: Select all

/Delimiters = <>=~!@%^&()+{}[];"'     ,? 
In between the ' and , remove the many spaces and insert a single space and a push on the TAB, this should help with the syntax on tabed lines.

But thanks for the work in making this, saves a hell of a time... :)

Posted: Sat Jan 31, 2004 1:10 pm
by DrMadd
in the syntax file, I see wrist1 and wrist2


In the manual it says, rwrist and lwrist ( for right and left )


Which is correct and is there an up-to-date syntax file ?


DrMaDd

Posted: Thu Nov 18, 2004 3:10 pm
by Cr4zyb4rd
Figured I'd take my own shot at updating this for MQ2 datatypes and simplifying things a bit.

Code: Select all

/L10"MacroQuest" Noquotes Line Comment = | Block Comment On = |** Block Comment Off = **| File Extensions = MAC INC 
/Delimiters = <>~^%\&|=!+-/*$(){}[]" 	',
/Indent Strings = "{"
/Unindent Strings = "}"
/C1"Pre-Processor" 
** #
/C2"Subroutines" 
Sub
// /return /end
/C3"MQ Commands"
** /
else
/C4"MQ2 Data"
$
{
}
/C5"Array Index/Operators"
+
-
// /
\
*
%
& &&
| ||
~
^ ^^
[
]
==
! !=
> >> >=
< << <=
/C6"Inventory Slots"
ammo arms
back
charm chest
face feet
hands head
leftear leftfinger leftwrist legs
mainhand
neck
offhand 
ranged rightear rightfinger rightwrist
shoulder
waist
** bank bazaar enviro inspect loot merchant pack sharedbank trade 
/C7"Spawn Filters"
alert any
bard beastlord ber berserker brd bst body
check checknext class cleric clr corpse
enc enchanter
dru druid
GUILD
gm group guild
id
knight
light lfg loc
mag magician mnk monk
named nearalert nec necromancer next noalert noguild nopcnear nopet notid notnearalert npc 
pal paladin pc pet prev
ranger rng rog rogue
shd shm shaman shadow
timer trader trap trigger
untargetable
radius range
war warrior wiz wizard
zradius
It just treats anything following a slash as a command, so auto-correction doesn't work. Didn't seem like a huge issue to me, but if you want this it's easy enough to copy the commands from the syntax file above.

I'm going to add in some TLOs, at least the character and spawn stuff, and maybe take a whack at getting it to expand ${} and [] as if they were functions or something. Any comments/advice appreciated.

edit: fixed the error mentioned below, thanks druid/sharp

Posted: Fri Nov 19, 2004 2:16 pm
by A_Druid_00
Is it just me, or is Cr4zy's syntax file neglecting to unindent correctly? I added in the indent and unindent syntax to the file from the top post and it seems to unindent fine.

Weird stuff

Posted: Fri Nov 19, 2004 2:42 pm
by Sharp of Fairlight
Not realy weird if you look at the spelling...
/Indent Strings = "{"
/Unindent Strigns = "}"

Posted: Fri Nov 19, 2004 3:24 pm
by A_Druid_00
Hoho, slain by the english language

Posted: Fri Nov 19, 2004 4:00 pm
by Cr4zyb4rd
Sorry, i was banging my head off of a bug much like that one for over an hour, and got so frustrated I didn't check the other parts as well as i otherwise might have :)