-
The function
reindent_chromote
now useschromote::find_chrome
to find the path of the executable of the browser. -
Replaced
@doctype package
with@aliases prettifyAddins-package
.
New function reindent_chromote
. It is similar to reindent_PhantomJS
but it
uses the 'chromote' package and not 'PhantomJS'. Allows to reindent C, C++, Java,
Fortran, Julia, Python, SAS, Scala, Shell, and SQL.
-
Refreshed the Julia prettifier.
-
New addin 'Word wrap', to wrap a text file at 80 characters.
New function prettifyHTML
, able to prettify voluminous HTML files including
the embedded CSS and JavaScript, e.g. 25 Mb. It requires the command-line
utility prettydiff
, available on npm.
Better SQL formatter.
Possibility to prettify or indent TypeScript (.ts
and .tsx
files).
Defined JavaScript method String.prototype.trimStart
for old versions of V8
which do not support it.
Defined JavaScript method String.prototype.trimEnd
for old versions of V8
which do not support it.
Upgraded the 'Prettier' library.
Fixed an issue with the CRAN checks.
Fixed an issue with the CRAN checks.
Fixed an issue with the CRAN checks.
- Added a YAML prettifier. It obviously acts on YAML files, but also on the YAML metadata of (R)Markdown files.
- Added a LaTeX prettifier. It can be used for Sweave files. It requires the
command-line utility
latexindent
, which is included in MikTeX and TeX Live. - Added a Julia prettifier. It requires Julia and the Julia package
JuliaFormatter
. - Added a Python prettifier. It requires black.
- Added another Java prettifier, a JSON prettifier and a Ruby prettifier
(function
prettify_FCA
). - Now the package provides some functions to prettify, which return the pretty code. The addins just call these functions and render the pretty code in RStudio.
- Among these functions, there is
reindent_PhantomJS
. It allows to reindent code for some languages which were supported by a Shiny addin only, whereas this function does not run a Shiny app. These languages are C, C++, Java, Fortran, Julia, Python, SAS, Scala, Shell, and SQL.
- Added non-interactive versions of the addins, thanks to the V8 package.
- The number of spaces for the indentation is now based on the RStudio preference.
- Added a XML/SVG prettifier.
- Added a C/C++/Java prettifier, requiring
clang-format
.
First release.