Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Syntax highlighting

From   "Darves, Derek" <>
To   "" <>
Subject   st: Syntax highlighting
Date   Wed, 4 Apr 2012 15:33:19 -0400

>Hi All,

When using an external text edit program with the stata commands loaded I
find that any loop in the file does not seem to "close," such that syntax
is incorrectly highlighted from the loop forward. Is this something wrong
with the code here:

foreach var of varlist x1 x2 x3 {
capture rename `var' `=lower("`var'")'

It runs fine in Stata but seems to cause a problem with syntax
highlighting, where everything to follow is treated as a comment.

Thanks for any help with this,

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index