In some cases it would be nice to have some syntax highlighting in result blocks.

Is it possible to specify the type of the result block?

e.g. this src block will output yaml:

#+begin_src sh kubectl create deployment web --image nginx -o yaml --dry-run #+end_src 

When running this with C-c C-c a results block will look like (i've omitted the content)

#+RESULTS: #+begin_example ... #+end_example 

Is it possible to have it output

#+RESULTS: #+begin_example yaml ... #+end\_example 

We can have it do a lot of fancy stuff even output files according to https://orgmode.org/manual/Results-of-Evaluation.html

submitted by /u/TekDevelop
[link] [comments]