Topic: How to load stata's syntax automatically? (1 of 2), Read 51 times
Conf: Program develop.,Color syntax
From: soccy song
Date: Wednesday, September 10, 2003 06:56 AM

I am a new user. Every time I edit a Stata program file, I have to manually load the color syntax file using "misc/load color syntax file". There must be a way to do that automatically, right? Thanks!

soccy

 


Topic: Re: How to load stata's syntax automatically? (2 of 2), Read 58 times
Conf: Program develop.,Color syntax
From: Fritz Heberlein
Date: Wednesday, September 10, 2003 07:59 AM

> I am a new user. Every time I edit a Stata program file, I have to
> manually load the color syntax file using "misc/load color syntax
> file". There must be a way to do that automatically, right? Thanks!

This is explained in detail in the help file s.v. syntax
highlighting:



>>> To enable automatic syntax highlighting:

1. Open a file with the desired filename extension; e.g. open any
.c, .h, .htm or .html file.

2. Select {MISC, Load syntax file} and select the corresponding
.SYN file, e.g. "c.syn" or "html.syn".

Color syntax highlighting should now be visible.

3. Select {CONFIG, File-open config, Save filename extension
config}. The default filename in the file-save dialog box should be
correct, e.g. "c.cft" or "html.cft".

4. Make sure that {CONFIG, File-open config, Enable file-open
configuration} is enabled.

If it was not enabled and you just enabled it, you should also select
{CONFIG, Save config} to save this new config setting. (This step is
not needed if {CONFIG, Auto-save config} is enabled.)



Fritz