|
|
|
|
|
Please take note! For mod developers working with Unreal Tournament 2003, this documentation is meant to be a starting point for your own explorations into UT2003, not a definitive guide. There will be differences between the documentation here and the product in your hands, and you may have to figure out quite a bit for yourself. Check out the Unreal Tournament 2003 page in the Unreal Powered area for links to community sites if you're having problems. UDN is a licensee support site, and cannot provide technical support or game-specific assistance to end users.
|
|
|
|
UnrealScriptHighlighting |
|
|
|
|
|
Licensees can log in.
Interested in the Unreal engine? Check out the licensing page.
Questions about UDN itself? Contact the UDN Staff.
|
|
|
|
|
|
|
|
|
Adding syntax coloring to MSDev for Unreal Script
Original author was Joe Graf (UdnStaff). Tweaked slightly and anonymously for better wikiness. Last modified by Christian M. Buhl (ArmyGameTeam) to add regedit hack. Jack Porter (EpicGames) added the Visual Studio.NET registry file.
Download Visual-Studio-.NET-UC-Syntax-Highlighting.reg at the bottom of this page and double click it. Restart Visual Studio.NET. Visual Studio.NET will now perform C++ syntax highlighting on .uc files.
Option 1: DLL Installation
Step 1: Adding UWHighlighting.dll to MSDev
Simply place the DLL in the C:\Program Files\Microsoft Visual Studio\Common\MSDev98\AddIns directory (or wherever your installation is). Then go to the Tools | Customize... menu. Choose the Add-ins and Macros tab. Enable the add-in entitled UWHighlighting.DSAddIn.1 .
Step 2: Adding usertype.dat to MSDev
Place the usertype.dat file in the C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin directory.
Restart MSDev. Open your favorite UC file and see the Unreal keywords appear in blue (or whatever you have them set to).
To add a missing keyword, simply edit the usertype.dat and place the missing keyword on its own line. For instance:
native
...
missingKeyword
Remember to restart MSDev to see the new keyword, and please consider updating the file here with your new version (just make a note here in the doc of what you added)!
As far as I can tell, this does exactly what the DLL is supposed to do. The usertype.dat file is still useful though.
Type regedit in the Run window or from a command line.
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++\FileExtensions
So the Value data should look something like this:
cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;uc
UltraEdit is a pretty inexpensive and decent text editor for windows, from http://www.ultraedit.com It reminds me of Visual Slick Edit, but without the crazy pricetag :) - Zoner (seanc@gearboxsoftware.com)
A words file for UltraEdit (version 10) has been attached below. To use it simply append it to your existing wordsfile.txt from the directory UltraEdit was installed to. This wordsfile uses language #20 like all the downloadable words files from the UltraEdit web site, so you might have to give it a new language number by editing the first few characters of this file and changing the /L20 into /L13 or some other unused number. You will need to also edit the settings under Advanced/Configuration/FileTypes and add UnrealScript Files(*.uc) to it. You should probably customize the colors under the Syntax Highlighting tab, as I setup more categories than the normal scheme handles well (some colors are duplicated like red if you don't customize them).
|
|