rstudio/shinymeta

Allow user to control styling of deparsed code

cpsievert opened this issue · 1 comments

Currently we force you to use styler::style_text(), but there might a good reason to use something else.

Maybe we should export a deparseCode() function, that would essentially do what rebreak() currently does...itcould return a shinyMetaExprDeparsed class with a print method that would automatically run styler::style_text() on it, but also give you the option to use something else.

(BTW, in order to handle comment correctly, it seems like we need to fully control the deparsing of anything passing through withMetaMode())

Done in #30