Syntax Rules on NON-Extension

General questions about using TextPad

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

Post Reply
Dtsig
Posts: 23
Joined: Mon Mar 17, 2003 8:29 pm

Syntax Rules on NON-Extension

Post by Dtsig »

When you are working in php or c or cpp using the extension is a great way to define a "class".

The problem starts when you are working in an environment where there is no extension.

An example of this is PICK (or any of the 10+ flavors of multivalued environments). So you might have source with names like

TRUCK.INVOICING
ORD.ENTRY

Our thought was that using textpad specific for programming these items we could set DEFAULT to use our syntax file. But it is 'grayed out' in DEFAULT (which really makes sense)

Would it be possible OR is there a way to say 'I want to look at this item, regardless to *extension*, with X syntax?

Thanks
DTSig
David Tod Sigafoos
bveldkamp

Post by bveldkamp »

Create a new document class that holds all possible file extensions (i.e. Invoicing, Entry, etc) that you might possibly use, but I understand it can be an extensive list, right?
Otherwise you'll problably end up doing Alt+Enter, Ctrl+Shift+Tab+Tab, Alt+S, Alt+D, pick a syntax, Ctrl+Enter.
Unfortunately it's not possible to record these steps in a macro.
Post Reply