
Uploaded with ImageShack.us
I know it is not much, but it should highlight most functions, basic logical operations are orange, same with run commands, most objects. and other functions found for objects are blue, most rendering functions are green. Sound, undergrowth, overgrowth, LevelSettings, CollisionManager is Purple. rem makes the whole line red.
It is still a wip, any suggestions i will try to implement.
add this code in between <NotepadPlus> and </NotepadPlus> in
Code: Select all
<Drive>:\Documents and Settings\<CURRENT USER>\Application Data\Notepad++\userDefineLang.xml
If there is already a <UserLang> </UserLang> inside the .xml, add it right after the </UserLang>
Code: Select all
<UserLang name="Battlefield2Syn" ext="BF2">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="yes" words2="yes" words3="yes" words4="yes" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">000000</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators"></Keywords>
<Keywords name="Comment">1 2 0rem</Keywords>
<Keywords name="Words1">gameLogic. GameLogic. else ObjectTemplate Object. CombatArea object. console. </Keywords>
<Keywords name="Words2">renderer texturemanager objectdrawer Material ViewDistance AlphaRef SwayScale PatchSubdivide Lighting Mesh Texture RandomSizeScale Density Variation TerrainColorScale Skew GeneralHeight TypeSwayScale terrain. GeometryTemplate</Keywords>
<Keywords name="Words3">run if endIf cpname Type Include include </Keywords>
<Keywords name="Words4">Undergrowth. UndergrowthEditable. LevelSettings Overgrowth SpawnPoint heightmap sound. Sound. Sound CollisionManager. </Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="5" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="5" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="5" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="5" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>




Uploaded with 