Topic: CFT for CFT? (1 of 5), Read 29 times
Conf: Program develop.,Color syntax
From: John H
Date: Monday, May 17, 2004 09:16 PM

Hi,

I save a file extension configuration for .CFT (using the vedit.syn)
and it seems that confuses the file open config routine.. It's not
loading the syn file when I edit .CFT file.

Is there some other way I can do this other than manually loading
the vedit.syn each time I edit a .CFT file?

I realize editing .CFT files isn't a daily thing, but the color
syntax feature is just so nice. I get a little bummed when I don't see
colors. :-)

--
John
VEDIT SN: 95651
VEDIT (DOS) Ver. 6.12.1 05/07/04
VEDIT (32-Bit) Ver. 6.12.1 05/07/04
VEDIT Pro (64-Bit) Beta Test Ver. 6.12.1 05/07/04
Windows 2000 (5.0.2195 Service Pack 4)

 


Topic: CFT for CFT? (2 of 5), Read 27 times
Conf: Program develop.,Color syntax
From: Christian Ziemski
Date: Tuesday, May 18, 2004 07:19 AM

On 5/17/2004 9:16:24 PM, John H wrote:
>
>I save a file extension
>configuration for .CFT (using
>the vedit.syn)
>and it seems that confuses the
>file open config routine..
>It's not loading the syn file when I
>edit .CFT file.

Take a look at your \VEDIT\STARTUP.VDM file.
There is the code for handling .CFT.
And some comments. See the note below.


//
//------- File-open auto-configuration ----------------------------------------
//
// The "File-Open configuration" macro in T-Reg 115 is used to set
// configuration parameters according to the filename extension
// (file-type) or specific filename of each file opened.
// It must be enabled with {CONFIG, File-open config, Enable file-open
// configuration}.
//
// Note: The file-open configuration is not performed if you open one of
// the configuration files in the \FILE-CFG directory.
//

Christian

 


Topic: Re: CFT for CFT? (3 of 5), Read 27 times
Conf: Program develop.,Color syntax
From: Ted Green
Date: Tuesday, May 18, 2004 10:19 AM

At 07:19 AM 5/18/2004, you wrote:
>//
>//------- File-open auto-configuration ----------------------------------------
>//
>//...
>//
>// Note: The file-open configuration is not performed if you open one of
>// the configuration files in the \FILE-CFG directory.

I don't recall why I explicitly exclude the file-open configuration when opening files in this directory, but I suspect it didn't work correctly. You are welcome to try changing the startup.vdm file, but I won't be able to help you if it doesn't work. Sorry.

Ted.

 


Topic: CFT for CFT? (5 of 5), Read 28 times
Conf: Program develop.,Color syntax
From: John H
Date: Tuesday, May 18, 2004 11:48 AM

On Tue, 18 May 2004 10:19:59 -0400 GMT, Ted Green wrote:

> I don't recall why I explicitly exclude the file-open
> configuration when opening files in this directory, but I suspect
> it didn't work correctly. You are welcome to try changing the
> startup.vdm file, but I won't be able to help you if it doesn't
> work. Sorry.

No problem. Christian pointed out that I could just relocate/copy
the CFT somewhere to get it highlighted. I've got enough on my plate
without trying to tweak the startup.vdm file.

--
John

 


Topic: CFT for CFT? (4 of 5), Read 27 times
Conf: Program develop.,Color syntax
From: John H
Date: Tuesday, May 18, 2004 11:44 AM

On Tue, 18 May 2004 07:19:58 -0400 GMT, Christian Ziemski wrote:

> Take a look at your \VEDIT\STARTUP.VDM file.

Ah! One of the places I didn't look. I pretty much forgot about it
after reading the top comment lines in there.

> // Note: The file-open configuration is not performed if you open one of
> // the configuration files in the \FILE-CFG directory.

Thinking more about it, I can see how there could be reasons the syn
files are not active for file in the file config directory. Some
sort of circular problem perhaps - trying to highlight with a syn
file while editing it.

I'm perfectly happy just moving them out to a temp area to edit to
get the highlighting.

Thanks for the info!

--
John