by Mofi » Sun Sep 09, 2007 3:13 pm
Open Configuration - Editor Display - Syntax Highlighting. There you see the currently used wordfile. Open it with clicking on the button Open and close the configuration dialog with Cancel.
Search in the file for last occurence of a line starting with /Lxx"...". Remember the number xx and then set the cursor to end of the file.
Insert at the end following language definition to highlight # in files with the extension TXT (or txt or Txt ... it is not case-sensitive).
/Lxx+1"Text files" Nocase Noquote DisableMLS File Extensions = TXT
/Delimiters = tab#
/C1"Section Line #"
#
xx+1 is next number after the last language definition number you found before.
Note: After /Delimiters = 2 spaces and a tab character (here displayed as tab) must be specified before character #.
Now use command Save As to save the wordfile with a new name. That is better because standard wordfile.txt is also updated during updates of UltraEdit. Although you will be asked and a backup is created, many users don't recognize that during the installation of an update.
Next use Edit - Copy File Path/Name to copy full file name of the new wordfile to the Windows clipboard.
Open again Configuration - Editor Display - Syntax Highlighting, select the full file name of the wordfile in the edit field and press Ctrl+V to overwrite it with the name of the new wordfile. Press OK. Reopen the configuration dialog and select now Language Text files and then Color Group Section Line # and specify the red color for it.
That's it.
The syntax highlighting configuration dialog also has the button Help which opens the big help page about syntax highlighting where you can read anything about how the syntax highlighting works.