自定义函数-添加注释脚本索引中的某些示例包含大量细节和有用的注释:

当用户通过添加自定义函数()提交函数时,此类注释会被自动删除:

我要做什么才能看到评论?
Add Custom Functions(
New Custom Function(
"test",
"f",
Function( {}, Print( "hello world" )
),
<<DESCRIPTION></DESCRIPTION><LINGO-LABS id="lingo-labs-828088" slang="en-US" mode="CREATE"><LINGO-LABEL>自动化和脚本</LINGO-LABEL><LINGO-LABEL>内容组织</LINGO-LABEL></LINGO-LABS>回复:自定义函数 - 添加评论通常 JSL Quote() 可以帮助解决此类情况。额外的好处是,在构建函数时,您不必使用字符串
Names Default To Here(1);
myAdd = New Custom Function(
"custom",
"Add",
Function({x, y = 1},
x + y - 1
)
);
myAdd << Example(JSL Quote(// add first to second
a = Add(1, 2);
Show(a); // a = 3;
));
Add Custom Functions(myAdd);
