Medakan Novice
Joined: 15 Dec 2015 Posts: 41 Location: Seattle
|
Posted: Sun Mar 27, 2016 3:16 pm
Notepad++ User Defined language |
I use Notepad++ when writing my scripts and found the UDL feature and have attempted to make a zMUD version close to the same as zMUD editor works.
The structure I got so far figured out works okay for me but it is far from perfect. Has anyone else used this feature or know if someone has written a comprehensive version for zMUD on notepad++?
Just in case anyone is interested I will share what I have so far. Save as a .xml file and after opening a project in notepad++ select language tab then userdefined.
Code: |
<NotepadPlus>
<UserLang name="zMUD" ext="" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">{ } ( ) [ ] + - = < > ; " | ! , / . * : & ^ $</Keywords>
<Keywords name="Operators2"></Keywords>
<Keywords name="Folders in code1, open"></Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close"></Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">#ABORT
#ACTION
#ADD
#ADDITEM
#ADDKEY
#AFK
#ALARM
#ALIAS
#ALL
#BACKUP
#BEEP
#BREAK
#BUTTON
#C-
#C+
#CALL
#CAPTURE
#CASE
#CHARACTER
#CLASS
#CLOSE
#CLR
#COLOR
#COM
#CONDITION
#CONFIGURE
#CONNECT
#CR
#CW
#DBCLOSE
#DBDELETE
#DBFIRST
#DBGET
#DBLOAD
#DBNEXT
#DBOFFLINE
#DBONLINE
#DBPREV
#DBPUT
#DBRESET
#DBSAVE
#DDE
#DEFAULT
#DELCLASS
#DELITEM
#DELKEY
#DELNITEM
#DESCRIBE
#DIRECTION
#DISCONNECT
#DOOR
#ECHO
#ECHOPROMPT
#EDITOR
#ERASE
#EVALUATE
#EXECUTE
#FILE
#FIND
#FORALL
#FREEZE
#FTP
#FUNCTION
#GAG
#GAGBLOCK
#GAGOFF
#GAGON
#GALIAS
#GAUGE
#GVARIABLE
#H-
#H+
#HELP
#HIGHLIGHT
#HISTORY
#HOST
#IF
#IGNORE
#IMAGE
#INPUT
#KEY
#KILLALL
#LAUNCH
#LMAP
#LOAD
#LOG
#LOOK
#LOOP
#LOOPDB
#LOOPVIEW
#MAKEROOM
#MAKEWINDOW
#MAP
#MAPQUERY
#MARK
#MATH
#MEDIA
#MENU
#MERGE
#MESSAGE
#MOVE
#MSS
#MXP
#MXPTRIG
#NAME
#NEW
#NODEF
#NODIR
#NOMAP
#NOOP
#OK
#ONINPUT
#PATH
#PATHHIGH
#PAUSE
#PCOL
#PICK
#PLAY
#PLUGIN
#PORTAL
#PRIORITY
#PROMPT
#PSUB
#PW
#QUERY
#QUEUE
#READ
#RECALL
#RECORD
#REGEX
#RENAME
#REPEAT
#RESET
#RESUME
#RETRACE
#SAVE
#SAY
#SAYPROMPT
#SCRIPT
#SCROLL
#SEND
#SENDPROMPT
#SESSION
#SET
#SETPROMPT
#SHOW
#SHOWARR
#SHOWDB
#SHOWPROMPT
#SLOW
#SS
#STATE
#STATUS
#STEP
#STOP
#STWIN
#SUBSTITUTE
#SUSPEND
#T-
#T?
#T+
#TAB
#TAG
#TELEPORT
#TEMP
#TIMER
#TRIGGER
#TSET
#TYPE
#TZERO
#UNALIAS
#UNBUTTON
#UNCLASS
#UNDIR
#UNGAG
#UNKEY
#UNMENU
#UNPORTAL
#UNTAB
#UNTIL
#UNTRIGGER
#UNVAR
#UNWATCH
#URL
#VARIABLE
#VERBATIM
#VERSION
#VIEW
#WAIT
#WALK
#WATCH
#WHILE
#WINDOW
#WIZLIST
#WRAP
#WRITE
#YESNO</Keywords>
<Keywords name="Keywords2">%abs
%additem
%addkey
%alarm
%alias
%ansi
%array
%arrget
%arrhigh
%arrset
%ascii
%average
%begins
%bitand
%bitnot
%bitor
%bitxor
%btncol
%btnenable
%btnimage
%case
%char
%charcomment
%charnotes
%class
%clip
%color
%colorname
%comactive
%comcreate
%comget
%comset
%concat
%copy
%count
%countlist
%crtonl
%db
%dbget
%dblist
%dbmax
%dbmin
%dde
%ddeclose
%ddemacro
%ddeopen
%ddepoke
%defined
%delete
%delitem
%delkey
%delnitem
%destroom
%dice
%diceavg
%dicedev
%dicemax
%dicemin
%doorname
%dups
%ends
%eval
%exec
%expand
%expanddb
%expandlist
%filesize
%find
%float
%format
%getglobal
%grep
%gsl
%handle
%if
%insert
%int
%inwalk
%isfloat
%iskey
%ismember
%isnumber
%item
%lastdir
%left
%leftback
%len
%literal
%look
%lower
%match
%mapfilter
%maplocked
%mapquery
%mapvnum
%max
%mcp
%min
%mod
%mss
%nextdir
%nltocr
%norm
%null
%number
%numbuttons
%numitems
%numkeys
%numparam
%numrec
%numrooms
%numwords
%numzones
%param
%parsemode
%pathcompress
%pathexpand
%pathfrom
%pathreverse
%pick
%pop
%portal
%portalenabled
%pos
%prompt
%proper
%push
%query
%quote
%random
%read
%regex
%remove
%repeat
%replace
%replaceitem
%reversedir
%right
%rightback
%roomcol
%roomcom
%roomcontents
%roomcost
%roomdesc
%roomexit
%roomflags
%roomid
%roomkey
%roomkind
%roomlink
%roomload
%roommob
%roommode
%roomname
%roomnote
%roomnum
%roomobj
%roomportal
%roomvnum
%roomzone
%round
%setglobal
%sort
%sqrt
%state
%stdev
%string
%stripansi
%stripq
%subchar
%subregex
%sum
%time
%trigger
%trim
%trimleft
%trimright
%upper
%viewrec
%walk
%walkactive
%walkconfirm
%walkmode
%walkroom
%window
%word
%write
%yesno
%zonename
%zonenum
%zonevnum
</Keywords>
<Keywords name="Keywords3">@</Keywords>
<Keywords name="Keywords4">%1
%2
%3
%4
%5
%6
%7
%8
%9

</Keywords>
<Keywords name="Keywords5">#COND
#SUB
#VAR
#T+
#T-</Keywords>
<Keywords name="Keywords6">%d
%n
%w
%a
%s
%x
%y
%p
%q
%t
%e
</Keywords>
<Keywords name="Keywords7"></Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00@{ 01 02} 03" 04 05" 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="4" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="00FF40" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="4" nesting="16779264" />
<WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="17409" />
<WordsStyle name="DELIMITERS3" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
|
|
|