With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Old WQ3 forum - archived. Links may not work.

Shaders: UltraEdit wordfile/Syntax Highlightning

Postby Breli » Thu Dec 22, 2005 8:02 pm

Hi,

The following wordfile may be interesting for those of you who use UltraEdit. It enables "syntax highlightning" for shader files in UltraEdit. Additionally, you have other nice features like code folding etc. It looks like this

Image

in UltraEdit.

How to use it: Open the file "wordfile.txt" in your UltraEdit directory and paste the code at the end of the file. I included the most common shader commands. Some commands/directives may be missing. You can easily add them in the appropriate section of the wordfile. This should work. If it doesn't, well, ;) don't bother me :D. Sometimes UltraEdit doesn't recognize keywords for no apparent reason ...

I created the file in a few minutes. I am sure that it can be improved. Just go ahead and let us know how!

Cheers

Breli

Code: Select all
/L11"Shader" SHADER_LANG Line Comment = // File Extensions = shader
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,   .?
/Function String = "%[a-zA-Z_]*)[~;]"
/Member String = "^([A-Za-z0-9_:.]+^)[ ^t*&]+$S[ ^t]++[(=;]"
/Variable String = "^([A-Za-z0-9_:.]+^)[ ^t*&]+$S[ ^t]++[(=;]"
/Indent Strings = "{"
/Unindent Strings = "}"
/Open Brace Strings =  "{"
/Close Brace Strings = "}"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Shader Keywords" STYLE_KEYWORD
alphaFunc
alphaGen
animMap
blendFunc
cull
deformVertexes
depthFunc
depthWrite
detail
light
map
nopicmip
polygonoffset
portal
q3map_alphamod
q3map_forcesunlight
q3map_globaltexture
q3map_lightimage
q3map_lightmapAxis
q3map_nonplanar
q3map_novertexshadows
q3map_shadeangle
q3map_sun
q3map_surfacelight
q3map_tcGen
qer_editorimage
qer_nocarve
qer_trans
rgbGen
skyparms
surfaceparm
tcgen
tcmod
tessSize
textures
/C2"Shader Data Types" STYLE_KEYWORD
$lightmap
add
alphashadow
areaportal
bulge
clusterportal
disable
donotenter
dotproduct2
environment
equal
filter
GE128
GL_DST_COLOR
GL_ONE
GL_ONE_MINUS_SRC_ALPHA
GL_SRC_ALPHA
GL_ZERO
hint
identity
ivector
lightmap
metalsteps
nodamage
nodraw
noimpact
nolightmap
nomarks
nonsolid
normal
oneminusvertex
playerclip
scale
sky
structural
textures/
trans
transform
turb
vertex
volume
water
User avatar
Breli
SG Team
 
Posts: 906
Joined: Mon Jul 18, 2005 10:08 am
Location: Germany



Return to Editor's Forum

Show Sidebar
Show Sidebar

User Control Panel

cron