Page 1 of 1

Syntax Rules on NON-Extension

Posted: Tue Jun 03, 2008 6:48 pm
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

Posted: Thu Jun 05, 2008 5:15 pm
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.