comments.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 64 行

HLP
64
字号
{smcl}
{* *! version 1.0.0  24may2005}{...}
{cmd:help comments}
{hline}

{title:Title}

{p2colset 5 21 23 2}{...}
{p2col :{hi:[P] comments} {hline 2}}Add comments to programs{p_end}
{p2colreset}{...}


{title:Description}

{pstd}
There are several ways of adding comments in do-files and programs
(ado-files).

{phang2}
1.  begin the line with {cmd:*}

{phang2}
2.  place the comment between {cmd:/*} and {cmd:*/} delimiters

{phang2}
3.  begin the comment with {cmd://}

{phang2}
4.  begin the comment with {cmd:///}

{pstd}
Note that the comment indicator {cmd:*} may only be used at the beginning of a
line, but it does have the advantage that it can be used interactively.
{cmd:*} indicates that the line is to be ignored.  The {cmd:*} comment
indicator may not be used within {helpb mata}.

{pstd}
The {cmd:/*} and {cmd:*/} comment delimiter has the advantage that it may be
used in the middle of a line, but it is more cumbersome to type than the other
comment indicators.  What appears inside {cmd:/* */} is ignored.

{pstd}
The {cmd://} comment indicator may be used at the beginning or at the end of a
line.  Note, however, that if the {cmd://} indicator is at the end of a line,
it must be preceded by one or more blanks.  {cmd://} indicates that the rest
of the line is to be ignored.

{pstd}
The {cmd:///} comment indicator instructs Stata to view from {cmd:///} to the
end of a line as a comment and to join the next line with the current line.
{cmd:///} is one way to make long lines more readable.  Like the {cmd://}
comment indicator, the {cmd:///} indicator must be preceded by one or more
blanks.


{title:Also see}

{psee}
Manual:  {bf:[P] comments}

{psee}
Online:  {helpb #delimit}
{p_end}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?