Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty printing #1

Open
hrbrmstr opened this issue May 12, 2020 · 0 comments
Open

Pretty printing #1

hrbrmstr opened this issue May 12, 2020 · 0 comments

Comments

@hrbrmstr
Copy link

{htmltidy} — https://github.com/hrbrmstr/htmltidy — has a widget-based pretty printer.

The underlying libtidy — http://api.html-tidy.org/tidy/quickref_next.html#PrettyPrintHeader — it uses can pretty-print/reformat XML for use in outputting in text mode.

I could either add explicit textual pretty print processing functions in it that you could then use (it's on CRAN, and cld be made a Suggests with a namespace check for pretty printing if also loaded to avoid a hard dependency) or PR into here with libtidy code and just the text pretty printing (unless you also want the widget).

For console-output, doing checks for "being in RStudio" shld be "a thing" since one can still DoS RStudio with too much text output (yay using a browser DOM for text rendering).

Give it a ponder and lemme know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant