在gnuplot中阻止评论 [英] Block comments in gnuplot

查看:49
本文介绍了在gnuplot中阻止评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很长的gnuplot脚本.出于调试目的,我希望能够阻止此脚本的注释部分或使用"goto"语句.这可能吗?

I have a quite long gnuplot script. For debugging purposes, I would like to be able to block comment parts of this script or use a "goto" statement. Is this possible?

我知道我可以使用 if 语句:

I know I can use an if statement:

if (1 == 2) {
commented-out-code
} else {
non-commented-out code
}

这是唯一的解决方案吗?

Is this the only solution?

推荐答案

gnuplot中的注释以#开头.如果要注释整个块,则文本编辑器应该能够执行此操作(例如,在Emacs中选择了该块的 M-; ).

Comments in gnuplot start with a #. If you want to comment a whole block, your text editor should be able to do that (e.g. M-; in Emacs with the block selected).

这篇关于在gnuplot中阻止评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆