[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: RE: RE: RE: RE: List of ALL Commands

From   "Gabi Huiber" <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: RE: RE: RE: List of ALL Commands
Date   Fri, 19 Sep 2008 16:49:44 -0400

Having recently converted to using Notepad++ for editing my do-files,
I am sympathetic to Sergiy's quest for a comprehensive list for the
purpose of syntax highlighting.

I wonder if we could make it a community effort on somebody's website.
We could start with whatever getcmds turns up and add to the list as
fancy strikes. With enough participation, it might fill up pretty
quickly. Whatever word anybody tried to add to the list would go
through two checks: first, a simple duplicate check to ensure that
it's not there already; and second, if the first check is passed, a
tweak on Stata's "search" command to ensure that it's legitimate. This
tweak would return 1 and allow the addition if "search <word>, exact"
turned up a non-zero list of references -- e.g. search boxcox, exact
-- or 0 and reject the addition otherwise. Or we can base this check
on the "which" command, I don't know.

But my own biggest syntax highlighting concern isn't the command list.
I can add to that as my vocabulary expands. Rather, it's the proper
matching of delimiters. Nested macros like ${${foo}bar} or matrix
references like matrix[`i',`j'] -- as opposed to matrix[`i', `j'] with
a blank after the comma -- will throw off my Stata language definition
sheet (a work in progress based on the one Keith Kranker wrote).

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index