emacs/var/elfeed/db/data/3c/3c8ca7eb027b4e88d45b22e954b53bc422727916
2022-01-03 12:49:32 -06:00

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&#39;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 --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r2foq1/source_blocks_specify_type_of_result_block/">[comments]</a></span>