viewsource.hlp

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

HLP
59
字号
{smcl}
{* 10feb2005}{...}
{cmd:help viewsource}
{hline}

{title:Title}

{pstd}
{hi:[P] viewsource} {hline 2} {bf:View source code}


{title:Syntax}

{phang}
{cmd:viewsource} 
{it:filename}


{title:Description}

{pstd}
{cmd:viewsource} searches for {it:filename} along the {help sysdir:adopath}
and displays the file in the Viewer.


{title:Remarks}

{pstd}
Say that you wish to look at the source for {helpb ml}.  You know that
{cmd:ml} is an ado-file, and therefore the filename is {cmd:ml.ado}.  You type

	. {cmd:viewsource ml.ado}

{pstd}
{helpb program} is not implemented as an ado-file:

	. {cmd:viewsource program.ado}
	{err:file "program.ado" not found}

{pstd}
By the way, you can find out where the file is stored by typing 

	. {cmd:findfile ml.ado}
	C:\stata\ado\base\ml.ado

{phang}
See {helpb findfile}.


{title:Also see}

{psee}
Manual:  {hi:[P] viewsource}

{psee}
Online:  {helpb copysource},
{helpb findfile}
{p_end}

⌨️ 快捷键说明

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