Topic: loading vtm and syn on open (1 of 10), Read 50 times
Conf: Startup, File Open, Exit
From: Michael Southwell
Date: Sunday, October 07, 2001 08:21 PM

6.0 looks great but having trouble recognizing file types and loading the appropriate vtm and syn files. I have file-open config enabled. Can't tell for sure where vtm is stored when loaded manually. Eventually added lines from 5.2 startup to 6.0 startup:
Syntax_Load("html.syn") and
Reg_Load(115,"html.vtm") and now the syn is ok but the vtm still doesn't work, even though it is sure enough in T115. then load it manually and it's still there and now works. How can I get this working automatically?

 


Topic: Re: loading vtm and syn on open (2 of 10), Read 53 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Sunday, October 07, 2001 09:02 PM

At 08:21 PM 10/7/2001, you wrote:
>6.0 looks great but having trouble recognizing file types and loading the appropriate vtm and syn files. I have file-open config enabled. Can't tell for sure where vtm is stored when loaded manually. Eventually added lines from 5.2 startup to 6.0 startup:
>Syntax_Load("html.syn") and
>Reg_Load(115,"html.vtm") and now the syn is ok but the vtm still doesn't work, even though it is sure enough in T115.

Sorry, but you need to forget everything you ever knew about syntax highlighting and template editing from VEDIT 5.2. For one thing T115 is no longer used for template editing and by loading something into it, you broke the file-open configuration. You should never need to change the startup.vdm file anymore; if you do, you are on your own.

I would suggest re-installing and following the instructions. In short:

1. Open your file.
2. {MISC, Load syntax file}.
3. {MISC, Load tempate file}.
4. Make sure {CONFIG, File-open config, Enable file-open config} is enabled.
5. Select {CONFIG, File-open config, Save filename extension config}.

Ted.

 


Topic: Re: loading vtm and syn on open (3 of 10), Read 52 times
Conf: Startup, File Open, Exit
From: HJ Schmidt
Date: Monday, October 08, 2001 11:52 AM

Is there a better place than STARTUP.VDM to assign a 'custom' name for the Tools menu bar item (as in the following, taken from startup.org):

Config_String(TOOL_MENU,"&ToolX") //Give it the desired name

 


Topic: Re: loading vtm and syn on open (4 of 10), Read 54 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Monday, October 08, 2001 12:01 PM

At 11:53 AM 10/8/2001, you wrote:
>Is there a better place than STARTUP.VDM to assign a 'custom' name for the Tools menu bar item (as in the following, taken from startup.org):
>Config_String(TOOL_MENU,"&ToolX") //Give it the desired name

You can place this Config_String into your USTARTUP.VDM file. Make sure {CONFIG, Misc, Enable USTARTUP.VDM} is enabled.

I am trying to make it unnecessary (and not recommended) to edit the STARTUP.VDM file. I have succeeded with regard to normal configuration, but the {TOOL} menu is still an exception.

Cheers,

 


Topic: Re: loading vtm and syn on open (5 of 10), Read 53 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Monday, October 08, 2001 03:28 PM

As interim solution until Ted's official solution is released I'm
using the following:


Remove the whole block

if (#120==4) {
Reg_Load(123,"tools.mnu",EXTRA+NOERR)
Config_String(TOOL_MENU,"&ToolX")
Key_Add("Alt-T",'[MENU]T',OK)
}

from STARTUP.VDM and add this to USTARTUP.VDM at the proper location:

Reg_Load(123,"tools.mnu",EXTRA+NOERR)
Config_String(TOOL_MENU,"&ToolX")
Key_Add("Alt-T",'[MENU]T',OK)
Config(U_TOOLS_MENU,4) // say STARTUP.VDM that it's a user's menu

Or if you want to use one of the standard Tools menus:

Config(U_TOOLS_MENU,1) // or 2 or 3


This way it's under your control and STARTUP doesn't have to be
modified for every change.
Of course it's a workaround for now and has to be repeated after every
update of VEDIT due to it's overwriting STARTUP.VDM.


Christian

 


Topic: Re: loading vtm and syn on open (7 of 10), Read 52 times
Conf: Startup, File Open, Exit
From: Fritz Heberlein
Date: Monday, October 08, 2001 05:47 PM

> As interim solution until Ted's official solution is released I'm
> using the following:
>
Thanks, Christian, this works fine. I had the same problem with my
TeX menu ...

Fritz

Dr. Friedrich Heberlein, Akad. Direktor
Seminar fuer Klassische Philologie
KU Eichstaett
Universitaetsallee 1
D-85071 Eichstaett / Bayern

email: sla019@...
Tel.: +49 8421 93 1544 / 93 3544

 


Topic: Re: loading vtm and syn on open (6 of 10), Read 52 times
Conf: Startup, File Open, Exit
From: Michael Southwell
Date: Monday, October 08, 2001 04:56 PM

Many thanks. This is what comes from skipping "what's new." Something that's not mentioned there is the whole file-cfg\*.cft system, which makes it very clear why my approach was so completely wrong.

It is a privilege and a pleasure to do business with a company like Greenview. The earliest Vedit I can remember is 1.14, but maybe I go back even farther. I liked the 20 year history!

 


Topic: Re: loading vtm and syn on open (8 of 10), Read 54 times
Conf: Startup, File Open, Exit
From: HJ Schmidt
Date: Tuesday, October 09, 2001 10:41 AM

...ain't it the truth
(re: pleasure to use Vedit)

I keep hoping my need to use Vedit never goes away, since it's the only commercial software I can rely on to keep me from becoming a complete cynic. As far as I can tell, Ted appears to be demonstrating an extremely rare marriage between an "Open Source" way of thinking and a "successful business model." I hope it's a long term relationship.

 


Topic: Re: loading vtm and syn on open (9 of 10), Read 52 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Tuesday, October 09, 2001 01:03 PM

At 04:56 PM 10/8/2001, you wrote:
>Many thanks. This is what comes from skipping "what's new."

Thank you for your kind words! Especially after the tone of my reply which suggested that you "Read-The-Fine-Manual". ;-)

I will try to mention the new file-cfg\*.cft system more clearly.

Ted.

 


Topic: Re: loading vtm and syn on open (10 of 10), Read 53 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Friday, October 12, 2001 12:47 AM

At 04:56 PM 10/8/2001, you wrote:
>Many thanks. This is what comes from skipping "what's new." Something that's not mentioned there is the whole file-cfg\*.cft system, which makes it very clear why my approach was so completely wrong.

I added the following section to the whatsnew.txt file as you suggested:

..\FILE-CFG The file-open configuration files are stored in the new
directory ./FILE-CFG subdirectory. The file-type configuration files
have a .CFT extension; the filename specific configuration
files have a .CFN extension. Although these files are
typically created and updated by the {CONFIG, File-open
config} functions, experienced users can easily edit them -
they only consist of Config() commands.

Ted.