Skip to content

Please document language formatting capabilities #34309

@Xernisfy

Description

@Xernisfy

Today I noticed, that deno fmt was automatically formatting my XML files. (and beautifully at that!)
By default - mind you - not hidden behind a feature/unstable flag.

However, this is not mentioned in deno fmt --help or https://docs.deno.com/runtime/reference/cli/fmt/
Also, the denoland.vscode-deno VSCode extension is not registered as an XML formatter.
I would love to drop my YAML and XML formatter extensions in favor of Deno.

I wonder which other languages/syntaxes are also silently available?
Is this list of feature flags possibly outdated too?

      --unstable-component               Enable formatting Svelte, Vue, Astro and Angular files
      --unstable-css                     Enable formatting CSS, SCSS, Sass and Less files
      --unstable-html                    Enable formatting HTML files
      --unstable-sql                     Enable formatting SQL files.
      --unstable-yaml                    Enable formatting YAML files

I quickly made up some YAML, HTML and CSS files and they were instantly formatted just by deno fmt .

Metadata

Metadata

Assignees

No one assigned

    Labels

    deno fmtRelated to the "deno fmt" subcommand or dprintdocs

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions