Well, to create a wordfile you best start either with another, similar wordfile or use Template for syntax highlighting language wordfile
I have attached a KML.uew for you created quickly using KML Reference
. But I don't have read the reference. I just copied the element names and some attributes and verified the wordfile using animatedupdate_example.kml
. You have to read the reference to determine if opening tag of an element can exist only as
- <element </element> because always requires an attribute or is always a self closing element (like <kml);
- <element> </element> because is always an element without attributes and requires always a closing tag (as many elements);
- <element <element> </element> because is an element which can but must not have attributes, but has always a closing tag.
Also it looks like some elements in the reference do not really exist in *.kml files like <AbstractView>
. So you need to remove the strings <element> </element>
from the wordfile for those elements which do not really exist in *.kml files.
The goal of a syntax highlighting wordfile should not be to just syntax highlight a file, it should with the addition of auto-complete and auto-correct feature help you also on editing the file and detecting mistakes in syntax. So if an element requires always an attribute, <element>
should not be in the wordfile because then <element>
would be displayed with normal text color clearly indicating that this is wrong.
Of course instead of putting all elements in color group 1, you can split them up into more color groups. For example all elements with gx prefix could be in a separate color group. Or all elements existing only in <Camera>
or in <LookAt>
are highlighted with a different color to easily see also the block structure.
Note: If the KML wordfile you create should be helpful for other UltraEdit and KML users too, take into consideration that more than 8 color groups are not supported by UltraEdit versions prior v17.00. So you either limit the number of color groups used to 8 or you create 2 wordfiles, one with just 8 color groups (all element tags in one color group) and a second one with more than 8 color groups (several color groups for the elements).Attached wordfile replaced by an updated wordfile, see below.