Syntax highlighting only partially works with Stata files...

Syntax highlighting, code folding, brace matching, code indenting, and function list

Syntax highlighting only partially works with Stata files...

Postby sherifffruitfly » Thu Jun 29, 2006 11:56 pm

Some stuff is highlighted (about 1/3 of what's defined in it's wordfile), and the rest is rendered as normal text. This is 90% of the time I load Stata script files.

The other 10% of the time, I get full syntax highlighting in all its glory.

Anyone have this problem before?
User avatar
sherifffruitfly
Newbie
 
Posts: 2
Joined: Wed Jun 28, 2006 11:00 pm

Syntax highlighting only partially works with Stata files

Postby Mofi » Fri Jun 30, 2006 5:15 am

I don't know anything about Stata.

However, I looked into the stata7.txt wordfile from the download area and have seen, that the language definition is case-sensitive. So the keywords in your file must also have the correct case.

What I'm missing in the stata7.txt is the /Delimiters = specification. So UltraEdit uses the default delimiter character set. I guess, this is the main problem. Add the delimiters for stata files and then check especially the operators section. If for example the = is also a delimiter, == must be deleted and ~= must be replaced by only ~.

Note: The wordfiles in the download area are created by users and not by IDM!
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Syntax highlighting only partially works with Stata file

Postby sherifffruitfly » Tue Jul 04, 2006 2:16 am

Thanks for the thoughts on the stata syntax file - i'll try to get it "up to code"...

:)
User avatar
sherifffruitfly
Newbie
 
Posts: 2
Joined: Wed Jun 28, 2006 11:00 pm


Return to Syntax Highlighting