Print language name of the code chunks, with knitr html?

Heyy, I want to print out the "language name" of the code chunk but couldn't figure it out. I'm using these settings, pretty much default:

    toc: true
    number_sections: false
    theme: simplex
    highlight: tango
    df_print: page


Can we indicate what language is the block, python or r, in the output document? Hopefully with a simple parameter that we can configure in front-matter.

How about you manually add R and Python comments in the code chunks so that you are able to see them in the final output?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.