vim-pandoc / vim-rmarkdown

Rmarkdown support for vim
98 stars 26 forks source link

Highlight Python syntax in code chunks #25

Closed joelostblom closed 5 years ago

joelostblom commented 5 years ago

I just copied the existing R section and changed r/R to python/Python. Not sure if this is the preferred way of going about it but it works for me:

image

I have an open issue in the syntax repo since I thought this was syntax related, but I realize I should have opened it here instead.

fmoralesc commented 5 years ago

Hi! I just saw the other issues in the syntax repo.

Indeed, it is preferred to keep this in this repo if the syntax is special to rmarkdown.

LGTM, it is exactly what I would have done ;)

VolkovIlia commented 3 years ago

Is it any solution? Still cant highlight code into Rmd, rmd files with {python}. In md files all works fine. Can someone share correct init.vim for using syntax highlighting in rmd files. rmd: image md: image