gpt4 book ai didi

emacs - orgmode 中的注释行

转载 作者:行者123 更新时间:2023-12-03 20:15:29 25 4
gpt4 key购买 nike

使用注释行查阅组织文档:

The Org Manual: Comment lines

12.6 Comment lines

Lines starting with zero or more whitespace characters followed by one ‘#’ and a whitespace are treated as comments and, as such, are not exported.

Likewise, regions surrounded by #+BEGIN_COMMENT ... #+END_COMMENT are not exported.

Finally, a ‘COMMENT’ keyword at the beginning of an entry, but after any other keyword or priority cookie, comments out the entire subtree. In this case, the subtree is not exported and no code block within it is executed either129. The command below helps changing the comment status of a headline.

C-c ;

Toggle the ‘COMMENT’ keyword at the beginning of an entry.


#+BEGIN_COMMENT … #+END_COMMEN工作正常。

enter image description here

然而,

Lines starting with zero or more whitespace characters followed by one ‘#’ and a whitespace are treated as comments and, as such, are not exported.



enter image description here

我误解了那个说法吗?

最佳答案

你读得很好:工作注释语法是

#+BEGIN_COMMENT
this is a comment
#+END_COMMENT

或者
# this is a comment (needs at least one first whitespace after #)

然而
#this is not a comment (it is exported as "#this is not a comment")

关于emacs - orgmode 中的注释行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56318494/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com