Just making trouble here. Does anyone have an idea how to set up syntax highlighting for the files that come up when you "view source" on an .html page?
I don't see a document extension for these files.
Document Type for "View Source" ?
Moderators: AmigoJack, bbadmin, helios, MudGuard
Document Type for "View Source" ?
Best Wishes!
Mike Olds
Mike Olds
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
I just got rid of text.syn under
Configure -> Preferences -> Document Classes -> Text.
Now I'm using html.syn there so when I have a document
without an extension, like in view source from IE, I'm getting
the syntax colors. Besides, all text.syn did for me was to
highlight URL's and html.syn takes care of that 8)
Configure -> Preferences -> Document Classes -> Text.
Now I'm using html.syn there so when I have a document
without an extension, like in view source from IE, I'm getting
the syntax colors. Besides, all text.syn did for me was to
highlight URL's and html.syn takes care of that 8)
The View Source command in IE creates a temporary file, without a file extension. Therefore, you need to add "*." to the list of members of the HTML document class to get them to be highlighted. If that is already a member of another document class, you'll need to delete it from that class.
Keith MacDonald
Helios Software Solutions
Keith MacDonald
Helios Software Solutions
Thanks for the responses, MudGuard and admin. I went with adding *]. to the files for the TEXT document class and it seems to be working fine.
OT: I see what they are talking about when they say that EMACS is becoming an operating system. I begin to see everything through TextPad.
OT: I see what they are talking about when they say that EMACS is becoming an operating system. I begin to see everything through TextPad.
Best Wishes!
Mike Olds
Mike Olds