line / conflr

Post R Markdown documents to Confluence
https://line.github.io/conflr/
GNU General Public License v3.0
130 stars 28 forks source link

Syntax highlighting in Code Block macro? #126

Open AlexisMaizel opened 3 years ago

AlexisMaizel commented 3 years ago

Super nice and useful add on. Thanks. R code blocks are at the moment converted to Code Block macro but do not have any syntax highlighting at all.
Could conflr either use:

yutannihilation commented 3 years ago

If your Confluence already provides custom syntax highlighting for R, you can specify r in conflr_supported_syntax_highlighting option (c.f. https://line.github.io/conflr/#options). But, I agree it might be useful to set the default highlighting language, even if it's not for R. Just curious, which language do you specify when you write R code on code block macro?

AlexisMaizel commented 3 years ago

oh, I overlooked the existence of the conflr package (only used the RStudio add on so far). I read the doc, installed it and indeed it does all I want. Thanks! None of the language syntax highlighting offered in the code block macro is really suited to R, but I use python.

yutannihilation commented 3 years ago

Ah, yes, probably I need to add more documents about console usages... Sorry for your confusion!