How to integrate a text file in a code "style"?

I would like to refer to some other files (basically some conf files or txt files) and would like them to be embedded into my readme but I would like them to be formatted as code is there a simple way to do that?

Thanks