PDA

View Full Version : M2TW syntax highlighting for UltraEdit32



alpaca
10-06-2007, 16:10
Hey guys,
I compiled this source highlighting file that makes editing some of the text files by hand much more comfortable (if you're one of the manual guys like I am).
They only work with UltraEdit, which you will have to pay for after a free trial.

Download:

Version 1.0: Download (http://www.mizus.com/files/files/M2TW/tools/M2TW_UEdit_highlighting_1_0.rar)


Readme: M2TW Syntax Highlighting for UltraEdit32
Version 1.0
Author alpaca (Stefan Reutter)

--------------------------------------------------------------------------------------

1. Description

2. Installation

3. Usage

4. License

--------------------------------------------------------------------------------------

1. Description

This is a wordfile containing syntax highlighting for three important files that are used in M2TW:
- campaign_script.txt (MTW2 script)
- export_descr_buildings.txt (MTW2 EDB)
- descr_strat.txt (MTW2 strat)

I'm also planning to add support for the following when I have time:
- export_descr_advice.txt
- export_descr_character_traits.txt
- export_descr_ancillaries.txt

--------------------------------------------------------------------------------------

2. Installation

Simply extract wordfile.txt into your UltraEdit32 folder (overwriting the existing version unless you have some custom languages defined)

--------------------------------------------------------------------------------------

3. Usage

Start UltraEdit, then go to Advanced->Configuration->Editor Display->Syntax Highlighting. On the right will be a box allowing you to choose a language to edit - set the highlighting options for all three languages. It's not strictly necessary but highly recommended to do this.

The highlighting should work out of the box with the files (if you didn't rename them). If you renamed them, select View->View As and set the correct highlighting type.

--------------------------------------------------------------------------------------

4. License

You are free to redistribute this file with or without credit, changed or unchanged. Do with it whatever takes your fancy.




Screenshots:

http://img111.imageshack.us/img111/103/highlightscreen1om9.th.png (http://img111.imageshack.us/my.php?image=highlightscreen1om9.png)https://img528.imageshack.us/img528/4650/highlightscreen2ho4.th.png (https://img528.imageshack.us/my.php?image=highlightscreen2ho4.png)https://img105.imageshack.us/img105/5906/highlightscreen3it6.th.png (https://img105.imageshack.us/my.php?image=highlightscreen3it6.png)

The last two show the code folding feature in use (click on the "-" sign to collapse certain structures, like monitors or faction entries in the descr_strat)

BozosLiveHere
10-06-2007, 17:04
Damn, you make the syntax highlighting I made for the traits files in RTW look pathetic. I didn't even know there was a way to implement code folding like that.

alpaca
10-06-2007, 18:02
Damn, you make the syntax highlighting I made for the traits files in RTW look pathetic. I didn't even know there was a way to implement code folding like that.
Well code folding is actually pretty easily done, just check the language definitions in the wordfile. If you want to do it for the traits, I have no problem with that whatsoever. You can actually easily copy the conditions and events from the campaign script language.