使用组织模式以其他语言生成输出


14

鉴于以下旨在生成C ++代码:

#+BEGIN_SRC python :exports both :results output code
print "struct Whatever{};"
#+END_SRC

结果插入如下:

#+RESULTS:
#+BEGIN_SRC python
struct Whatever{};
#+END_SRC

显然,该格式未格式化为C ++。我如何获得它,以便组织生成以下内容:

#+RESULTS:
#+BEGIN_SRC c++
struct Whatever{};
#+END_SRC

谢谢

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.