Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stata syntax highlighting

    Dear All!

    Observing the strange highlighting depending on the presence of a [seemingly irrelevant] apostrophe:

    Code:
    display as error `"Error! Something doesnt have a variable label yet."'
    display as error `"Error! Something doesn't have a variable label yet."'
    Is rendered as (Stata 17, Windows, language setting: ado):
    Click image for larger version

Name:	syntax_hl.png
Views:	1
Size:	15.0 KB
ID:	1696077


    I prefer the way it is rendered in line 6, but have no idea why the apostrophe triggers a different treatment. The problem is not there when I use regular double-quotes instead of the compound quotes as shown.

    The problem seems to apply to the do-editor only, the code runs correctly in Stata regardless of how it is highlighted in do-editor.

    Best, Sergiy
Working...
X