Emacs has syntax highlighting for any language. And code blocks in org-mode (org babel) will run in any language and export code and/or output to html, pdf, etc. with pandoc. So it is kind of rmarkdown, but language agnostic (so you can have blocks in R, html, python, shell, etc. in the same file).