syntax highlighting on a new file

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

syntax highlighting on a new file

Postby geertn » Thu Dec 08, 2005 8:44 am

Hi all,

I find it very annoying that there is no possibility to specify a "default" highlighting language. By default, i mean a highlighting when the file is not saved yet (no known extension).

I work a lot with templates and i want my templates to be syntax highlighted when i insert them. I do have to enable this manually all the time......

regards,
Geert
User avatar
geertn
Newbie
 
Posts: 5
Joined: Fri Feb 18, 2005 12:00 am

Re: syntax highlighting on a new file

Postby Captain » Thu Dec 08, 2005 8:54 am

Hi

Not sure which version you are using but in 11.20a
you can view an unsaved file with syntax highlighting by using View->View As(Highlighting File Type)->

and then choose which type you want your unsaved file to be viewed as
User avatar
Captain
Basic User
Basic User
 
Posts: 27
Joined: Tue Jul 26, 2005 11:00 pm

Re: syntax highlighting on a new file

Postby geertn » Thu Dec 08, 2005 9:16 am

Yes, indeed,

BUT you always have to manually choose that option. I want to specify a default highlighting. So that the file gets colored without having to specify EVERY TIME View->View As(Highlighting File Type)->Language x

By default, it is now: No coloring.
User avatar
geertn
Newbie
 
Posts: 5
Joined: Fri Feb 18, 2005 12:00 am

Re: syntax highlighting on a new file

Postby geertn » Thu Dec 08, 2005 9:17 am

PS. I am using version 10.20c
If this is possible in a higher version, please let me know. Time to upgrade :-)
User avatar
geertn
Newbie
 
Posts: 5
Joined: Fri Feb 18, 2005 12:00 am

Re: syntax highlighting on a new file

Postby Bego » Thu Dec 08, 2005 9:23 am

Hi guys,

try this in your wordfile in your default language:

File Extensions = *

And .. Here we go !

rds Bego :D
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: syntax highlighting on a new file

Postby Mofi » Thu Dec 08, 2005 10:14 am

The * as file extension in the wordfile for default highlighting also works in older versions of UltraEdit. It's not necessary, that it is the only file extension for a language setting. It must be only the last one.

Example: html language as default for unknown files:

File Extensions = HTM HTML SHTML HTT HTX CFM JSP PHP PHTML ASP *

Since UE v12.20 it is possible to configure in the syntax highlighting dialog which language should be used by default for highlighting new unsaved files.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4068
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting