Page 1 of 1

Syntax choice for current document

Posted: Mon Feb 09, 2004 6:27 pm
by dmerrill
Can I choose the syntax coloring I want used for the current document, regardless of its extension? Say for instance it's a ColdFusion .cfm file, but consists entirely of SQL, and I want to use SQL syntax coloring. Or suppose it's an unsaved document I'm just using to process some text and don't plan to save.

I'm not talking about choosing the default class for new documents. I want to choose myself, on the fly.

Thanks

Posted: Mon Feb 09, 2004 6:46 pm
by dmerrill
Think I figured this out. Alt-Enter for document properties, syntax tab, right? ConTEXT has a dropdown in the toolbar for this, which I like, but it doesn't do a ton of things TextPad can.

Re: Syntax choice for current document

Posted: Mon Feb 09, 2004 6:46 pm
by s_reynisson
Put the "*." file ending in the class you feel is right for you. Note, only use *. (star and dot).
I have mine *. under the document class HTML, handy when viewing source from IE.
suppose it's an unsaved document I'm just using to process some text and don't plan to save.
And the Alt-Enter thing you aldready got...
Press Alt-Enter and select the Syntax tab, choose your setting for that document only.
I'm not talking about choosing the default class for new documents. I want to choose myself, on the fly.
HTH