I have an org file where I include a yaml source file:

#+INCLUDE: ".myfile.yaml" src yaml

This is good when I want to export to pdf or html to be as verbatim code. But is there a simple way to format the yaml in either the exported pdf or html? So that it renders in a nice way to read not as verbatim code?

  • I don't understand the problem. What exactly are you looking for? In my experiment, the yaml file was rendered just as it was in the input file (i.e. properly formatted) - the only difference is that it's nicely colorized to reflect the syntax. – NickD Jun 17 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.