Return the names of the currently registered syntaxes.
Return a pretty printed version of the provided text using the specified syntax.
the text to prettify.
the syntax to use.
Register a new syntax.
The recommended way to define a new language syntax plugin is to follow the instructions here:
https://prettier.io/docs/plugins#developing-plugins
There is a list of already defined languages available for import here:
the name used to refer to the syntax.
Default implementation of PrettyPrinterService which provides JSON by default.
Only prettier's babel and estree plugins are bundled, which provide the JSON parser and printer. Other syntaxes are added with registerSyntax.