Wikia

WoWWiki

UltraEdit WoW wordfile.txt

Talk12
102,217pages on
this wiki
Revision as of 02:01, September 14, 2008 by Mera LaCroisadeEcarlate (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

This file adds WoW Lua and XML syntax recognition (coloring, section collapsing, etc) to UltraEdit.

Oh, and as a bonus, it installs a "WoWWiki" language that helps with editing wikitext used in MediaWikis such as WoWWiki.

A new complete lua.txt including WoW, WotLK, Ace2 & Ace3 API functions and XML is available at http://wowluatxt.googlecode.com

How to use Edit

There are two ways to use it:

  • Copy and paste the contents into the global UltraEdit "wordfile.txt"
    • Note that UE will autoselect its own XML definition by default, unless you sabotage the extensions for that language defintion by removing the "XML" file extension from it. You can always switch to the WoW XML definition manually though.

- OR -

  • Save it as a separate file and use it as a custom wordfile in UE projects.
    • Requires setting up an UE project and having it open while editing WoW files. Edited files do not need to be made members of the project though. UE is nice that way.


This snippet defines languages 18--20 (the three last ones). You can of course change the indexes in your copy if you are already using them for other languages.

  • Note: A known issue with regard to UltraEdit syntax highlighting is line comment overtaking block comment which causes LUA block comments (--[[ ... ]]) not highlighted as expected. A solution posted there is to modify Line Comment = --  into Block Comment On Alt = -- .


Feel free to contribute whatever's missing! (But please verify that the resulting file actually works)

Do not attempt to copy this straight out of the page. Edit the page and copy it from there. Do not attempt to make it more readable in the wiki; you will miss something and make it useless in both modes!

wordfile.txt below Edit

/L18"WoWWiki" HTML_LANG Noquote Block Comment On = <!-- Block Comment Off = --> File Extensions = WIKI
/Delimiters = ~@$%^&*()+=|\[]{};"'<> ,#:
/Function String = "%^(=+*=+^)"
/Open Fold Strings = "= "
/Close Fold Strings = "= "
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Marker Characters = "{}[]"
/C2"HTML Entities" STYLE_OPERATOR
&#
&amp
&gt
&lt
&nbsp
&quot
&radic

/C7"HTML" STYLE_KEYWORD
<b <b> </b>
<code <code> </code>
<div <div> </div>
<i <i> </i>
<p <p> </p>
<pre> </pre>
<table <table> </table>
<td <td> </td>
<th <th> </th>
<tr <tr> </tr>
<tt <tt> </tt>
<span
<u <u> </u>

/C3

/C4"Operators" STYLE_OPERATOR
'
|-
{|
|}
:
|
=
~
~
*
#
;

/C6"Links" STYLE_FUNCTION
{}
[]

/L19"WoW XML" XML_LANG Noquote Block Comment On = <!-- Block Comment Off = --> File Extensions = XML XUL XSD XSL XSLT
/Delimiters = ~@$%^&*()+=|\{};"'<> ,
/Function String = "name=*">"
/Open Brace Strings =  "{" "(" "[" "<"
/Close Brace Strings = "}" ")" "]" ">"
/Open Fold Strings = "<Frames>" "<Layers>" "<Frame>" "<Frame " "<Scripts>" "<EditBox " "<Button " "<Button>" "<FontString "
/Close Fold Strings = "</Frames>" "</Layers>" "</Frame>" "</Scripts>" "</EditBox>" "</Button>" "</FontString>"
/Indent Strings = "<A" "<B" "<C" "<D" "<E" "<F" "<G" "<H" "<I" "<J" "<K" "<L" "<M" "<N" "<O" "<P" "<Q" "<R" "<S" "<T" "<U" "<V" "<W" "<X" "<Y" "<Z" 
/Unindent Strings = "/>" "</"

/C1"Elements" STYLE_ELEMENT
<AbsDimension </AbsDimension> <AbsInset </AbsInset> <AbsValue <Anchor </Anchor> <Anchors> </Anchors>
<Backdrop </Backdrop> <BackgroundInsets> </BackgroundInsets> <BarColor <BarColor> </BarColor> <BarTexture <BarTexture> </BarTexture> <Button> <Button </Button>
<CheckButton <CheckButton> </CheckButton> <CheckedTexture> <CheckedTexture </CheckedTexture> <Color </Color>
<DisabledText </DisabledText> <DisabledTexture </DisabledTexture> <DisabledCheckedTexture </DisabledCheckedTexture>
<EditBox </EditBox> <EdgeSize> </EdgeSize>
<FontHeight> </FontHeight> <FontString </FontString> <Frame <Frame> </Frame> <Frames> </Frames> 
<Font </Font>
<HighlightText </HighlightText> <HighlightTexture </HighlightTexture> <HitRectInsets> </HitRectInsets>
<Layer <Layer> </Layer> <Layers> </Layers>
<Model> <Model </Model>
<NormalText </NormalText> <NormalTexture </NormalTexture>
<Offset> </Offset>
<PushedTexture </PushedTexture>
<ResizeBounds> </ResizeBounds>
<Scripts> </Scripts> <ScrollChild> </ScrollChild> <ScrollFrame <ScrollFrame> </ScrollFrame> <ScrollingMessageFrame <ScrollingMessageFrame> </ScrollingMessageFrame> <Shadow> </Shadow> <Size <Size> </Size> <Slider <Slider> </Slider> <StatusBar <StatusBar> </StatusBar>
<TabardModel <TabardModel> </TabardModel> <TexCoords </TexCoords> <Texture </Texture> <ThumbTexture </ThumbTexture> <TileSize> </TileSize> <TitleRegion <TitleRegion> </TitleRegion>
<Ui> </Ui>
/>

/C2"Attributes" STYLE_ATTRIBUTE
a= alpha= alphaMode= autoFocus=
b= bgFile= blinkSpeed= bottom= bytes=
checked=
defaultValue= displayDuration= drawLayer=
edgeFile= enableKeyboard= enableMouse=
fade= fadeDuration= file= fogFar= fogNear= font= frameLevel= frameStrata=
g=
hidden= historyLines= hyperlinkFormat=
id= ignoreArrows= inherits= insertMode=
justifyH= justifyV=
left= letters= level=
maxLines= maxLines= maxValue= minimapArrowModel= minimapPlayerModel= minValue= monochrome= movable= multiLine=
name= nonspacewrap= numeric=
orientation= outline=
parent= password= point=
r= relativePoint= relativeTo= resizable= right=
scale= setAllPoints= spacing=
text= tile= top= toplevel=
val= valueStep= virtual=
x= xmlns= xmlns:xsi= xsi:schemaLocation=
y=

/C3"Commands" STYLE_COMMAND
ARTWORK
BACKGROUND BORDER BOTTOM BOTTOMLEFT BOTTOMRIGHT
CENTER
LEFT
RIGHT
TOP TOPLEFT TOPRIGHT
false
true

/C4"Scripts"
<OnChar> </OnChar> <OnClick> </OnClick> <OnCursorChanged> </OnCursorChanged>
<OnDragStart> </OnDragStart> <OnDragStop> </OnDragStop>
<OnEditFocusLost> </OnEditFocusLost> <OnEnterPressed> </OnEnterPressed> <OnEscapePressed> </OnEscapePressed> <OnEvent> </OnEvent> <OnEnter> </OnEnter>
<OnHide> </OnHide> <OnHyperlinkClick> </OnHyperlinkClick>
<OnInputLanguageChanged> </OnInputLanguageChanged>
<OnLeave> </OnLeave> <OnLoad> </OnLoad>
<OnMouseDown> </OnMouseDown> <OnMouseUp> </OnMouseUp> <OnMouseWheel> </OnMouseWheel>
<OnReceiveDrag> </OnReceiveDrag>
<OnScrollRangeChanged> </OnScrollRangeChanged> <OnShow> </OnShow> <OnSizeChanged> </OnSizeChanged>
<OnTabPressed> </OnTabPressed> <OnTextChanged> </OnTextChanged> <OnTextSet> </OnTextSet>
<OnUpdate> </OnUpdate>
<OnValueChanged> </OnValueChanged> <OnVerticalScroll> </OnVerticalScroll>
<Script <Script> </Script>

/L20"WoW LUA" JSCRIPT_LANG Line Comment = -- Block Comment On = --[[ Block Comment Off = ]] Escape Char = \ String Chars = '" File Extensions = LUA
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,	.?
/Function String = "%[ ^t]++function[ ]++^(*(*)^)"
/Function String 1 = "%[ ^t]++^(*^)=[ ^t]++function*(*)"
/Indent Strings = "function " "function(" "then" "do" "else" "{"
/Unindent Strings = "end" "else" "elseif" "}"
/Open Brace Strings =  "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{" "function " "function(" "then" "do"
/Close Fold Strings = "}" "end"
/C1"Keywords" STYLE_KEYWORD
break
case continue
do
else elseif end
false for function
if in 
local
nil
return
then this true
while 

/C2"Objects" STYLE_OPERATOR
io
math
os
string
table

/C3"Methods" STYLE_METHOD
byte
char concat close clock
date difftime
execute exit
find format flush
gmatch gfind gsub getenv
insert input
len lower lines
match maxn
open output
popen
rep reverse remove read rename
sub sort seek setvbuf setlocale
tmpfile type time tmpname
upper
write

/C4"Operators" STYLE_OPERATOR
%
*
+
-
/
:
<
=
>
?
[
]
^
~
.
..
not
and
or
type

/C5"Separs" STYLE_OPERATOR
(
)
,
;
{
}

Around Wikia's network

Random Wiki