可以非常容易地在.org文件中指定文本修饰符,如粗体,斜体,删除线等(请参阅链接).
同样,有没有办法为.org文件的一小部分指定文本颜色,以便文本在导出的html文件中适当地着色?我认为这对于快速拍摄高亮笔记非常有用.
预期行为:
This is a sample sentence in normal text color.
<font color="red">
This is a sample sentence in red text color.
</font>
<font color="green">
This is a sample sentence in green text color.
</font>Run Code Online (Sandbox Code Playgroud)
你可以使用宏:
#+MACRO: color @@html:<font color="$1">$2</font>@@
* This is a test
This is a sample sentence in normal text color.
{{{color(red,This is a sample sentence in red text color.)}}}
{{{color(green,This is a sample sentence in green text color.)}}}
Run Code Online (Sandbox Code Playgroud)
限制,第二个参数不能包含逗号(也可能包含其他一些字符).