1 line
1.2 KiB
Plaintext
1 line
1.2 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>In some cases it would be nice to have some syntax highlighting in result blocks.</p> <p>Is it possible to specify the type of the result block?</p> <p>e.g. this src block will output yaml:</p> <pre><code>#+begin_src sh kubectl create deployment web --image nginx -o yaml --dry-run #+end_src </code></pre> <p>When running this with C-c C-c a results block will look like (i've omitted the content)</p> <pre><code>#+RESULTS: #+begin_example ... #+end_example </code></pre> <p>Is it possible to have it output</p> <pre><code>#+RESULTS: #+begin_example yaml ... #+end\_example </code></pre> <p>We can have it do a lot of fancy stuff even output files according to <a href="https://orgmode.org/manual/Results-of-Evaluation.html">https://orgmode.org/manual/Results-of-Evaluation.html</a></p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/TekDevelop"> /u/TekDevelop </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r2foq1/source_blocks_specify_type_of_result_block/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/r2foq1/source_blocks_specify_type_of_result_block/">[comments]</a></span> |