R highlight syntax lost when using includeMarkdown or includeHTML


I am building an app with some code instructions, for tutorial purposes.
It has some interactivity on the main tab, and then the walkthrough code in a tab.

The code page, let's call it instructions, was made using Rmarkdown.

At the ui.R I wanted to include the instructions.Rmd in a tab, as following:

ui = 
                   h2("Some shiny stuff")


The instructions.Rmd are something like this:



When knit and opening in browser, the HTML looks fine regarding the syntax highlight

(2/3 ... sorry but as I am a new user I can only post one image at once)

The problem is that when using includeMarkdown() the tab is showing the Rmd but without the syntax, all grey.
The same applies if I call a pre-rendered html includeHTML(), with the body tags removed (as reported in other issues).
Both locally and in shiny-server happens the same.

Is it normal and there is nothing I can to do change the way the syntax is displayed, or am I missing something here?

Thank you


in other words, how to include the syntax with greens and blues that is show here in the code chunk on the right (html). I don't see a specific clue in the code that differs mine.

I wonder why it does not work...

This topic was automatically closed 54 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.