Syntax choice for current document

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
dmerrill
Posts: 4
Joined: Mon Feb 09, 2004 6:14 pm

Syntax choice for current document

Post 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
dmerrill
Posts: 4
Joined: Mon Feb 09, 2004 6:14 pm

Post 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.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Re: Syntax choice for current document

Post 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
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply