Default syntax highlight for all files?

Syntax highlighting, code folding, brace matching, code indenting, and function list

Default syntax highlight for all files?

Postby dnovakoff » Tue Jul 27, 2004 8:41 am

Hi,

I would like UltraEdit to start up using a specific color scheme every time, if the file extention does not exist in the wordfile anywhere. How can I do this?

I need this because in my programming environment, the script file extension changes every time I open a new editor (eg. filename.e01, .e02, .e03). I would like these to always use syntax highlighting.

Any ideas?
Thanks,
Dave
User avatar
dnovakoff
Newbie
 
Posts: 2
Joined: Mon Jul 26, 2004 11:00 pm

Re: Default syntax highlight for all files?

Postby Mofi » Thu Jul 21, 2005 5:26 am

Simply add an asterisk * to the list of extenstions for that language in your wordfile. For example:

/L8"PHP" PHP_LANG Nocase EnableMLS Line Comment = // Line Comment Alt = # Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = INC PHP PHP5 *

Note: The * must be the last file extension in the list and of course only 1 language can have this wildcard for highlighting all files with a file name or file extension not specified anywhere else in the wordfile with that language definition.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Default syntax highlight for all files?

Postby shanx24 » Thu Jul 21, 2005 4:10 pm

Thanks, this works.
User avatar
shanx24
Newbie
 
Posts: 1
Joined: Mon Jul 18, 2005 11:00 pm


Return to Syntax Highlighting