🌐
GitHub
github.com › prettier › plugin-xml
GitHub - prettier/plugin-xml: Prettier XML plugin · GitHub
@prettier/plugin-xml is a prettier plugin for XML. prettier is an opinionated code formatter that supports multiple languages and integrates with most editors.
Author   prettier
🌐
Prettier
prettier.io › docs › plugins
Plugins · Prettier
@prettier/plugin-xml · prettier-plugin-apex by @dangmai · prettier-plugin-astro by @withastro contributors · prettier-plugin-bigcommerce-stencil by @phoenix128 · prettier-plugin-elm by @giCentre · prettier-plugin-erb by @adamzapasnik · prettier-plugin-gherkin by @mapado ·
Discussions

metadata - How can I get `prettier` to properly format perm set XML files with `flowAccess`? - Salesforce Stack Exchange
Adding **/*.xml to .prettierignore does prevent parsing XML files and "fixes" the problem, but we do want XML properly parsed by prettier. So that's at least a temporary solution. ... Apparently there's another prettier plugin that works with something called "flow." More on salesforce.stackexchange.com
🌐 salesforce.stackexchange.com
Prettier 3.0.3 can't use plugin-xml in the context of pre-commit
Environments: Prettier Version: 3.0.3 Running Prettier via: pre-commit Runtime: Node.js v20 Operating System: macOS Prettier plugins (if any): @prettier/plugin-xml Steps to reproduce: Add the follo... More on github.com
🌐 github.com
4
July 21, 2023
Format XML
Please add XML format feature. Reference: #505 Prettier has an official plugin for that: https://github.com/prettier/plugin-xml I wonder, Prettier formats xml but not natively xml? Weird, but ok. I... More on github.com
🌐 github.com
2
September 29, 2020
Prettier⁺ for Nova
Hi there, I know it’s generally considered bad manners to start a first post with a bit of unsolicited self-promotion—so if this feels improper, feel free to delete it. I recently watched @dan’s YouTube video about using ChatGPT with Nova as well as his video on Component Editing. More on forums.realmacsoftware.com
🌐 forums.realmacsoftware.com
2
March 21, 2025
🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
Community Plugins · Apex · Elm (via elm-format) Java · PHP · Ruby · Rust · TOML · XML · And more... prettier-js prettier.el Apheleia · espresso-prettier · Prettier Prettier⁺ · JsPrettier · vim-prettier neoformat ALE coc-prettier · JavaScriptPrettier ·
🌐
CodeSandbox
codesandbox.io › examples › package › @prettier › plugin-xml
@prettier/plugin-xml examples - CodeSandbox
Use this online @prettier/plugin-xml playground to view and fork @prettier/plugin-xml example apps and templates on CodeSandbox.
🌐
GitHub
github.com › prettier › prettier › discussions › 13473
How to format XML files using the HTML formatter · prettier/prettier · Discussion #13473
Is there a way to configure prettier ... like to force this in my global prettier configuration. The XML plugin (https://github.com/prettier/plugin-xml) has serious ......
Author   prettier
🌐
Prettier
prettier.io › docs › sharing-configurations
Sharing configurations · Prettier
// index.js const config = { singleQuote: true, plugins: ["prettier-plugin-xml"], }; export default config; // package.json { "name": "@username/prettier-config", "version": "1.0.0", "description": "My personal Prettier config", "type": "module", "exports": "./index.js", "license": "MIT", "publishConfig": { "access": "public" }, + "dependencies": { + "prettier-plugin-xml": "3.4.1" + }, "peerDependencies": { "prettier": ">=3.0.0" } } An example repository can be found here ·
🌐
jsDelivr
cdn.jsdelivr.net › @prettier/plugin-xml@3.4.2
@prettier/plugin-xml CDN by jsDelivr - A free, fast, and reliable Open Source CDN
Looking for a nice landing page for your package? https://www.jsdelivr.com/package/npm/@prettier/plugin-xml
Find elsewhere
🌐
Arch Linux
aur.archlinux.org › packages › prettier-plugin-xml
AUR (en) - prettier-plugin-xml
June 27, 2023 - https://registry.npmjs.org/@prettier/plugin-xml/-/plugin-xml-3.4.1.tgz · aurweb v6.3.4 · Report issues here. Copyright © 2004-2026 aurweb Development Team. AUR packages are user produced content.
🌐
npm
npmjs.com › package › @prettier › plugin-xml › v › 0.3.0
@prettier/plugin-xml - npm
@prettier/plugin-xml is a prettier plugin for XML. prettier is an opinionated code formatter that supports multiple languages and integrates with most editors.
      » npm install @prettier/plugin-xml
    
Published   Jul 08, 2025
Version   0.3.0
Author   Kevin Deisz
🌐
Bundlephobia
bundlephobia.com › package › @prettier › plugin-xml
@prettier/plugin-xml ❘ Bundlephobia
Find the size of javascript package @prettier/plugin-xml. Bundlephobia helps you find the performance impact of npm packages.
🌐
UNPKG
app.unpkg.com › @prettier › plugin-xml@3.4.2
prettier/plugin-xml
prettier plugin for XML · github.com/prettier/plugin-xml · prettier/plugin-xml · 2 folders, 5 files · github.com/prettier/plugin-xml · prettier/plugin-xml · Latest: 3.4.2 ·
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 22501 › xml-plugin-pretty-print
XML Plugin - Pretty Print | Notepad++ Community
February 7, 2022 - Plugins > XML Tools > Pretty Print still only affects the active XML I even opened a second XML file, and ran the Pretty Print in the first: it still only affects the active XML, and not the second XML or the JSON.
🌐
GitHub
github.com › prettier › prettier › issues › 15517
Prettier 3.0.3 can't use plugin-xml in the context of pre-commit · Issue #15517 · prettier/prettier
July 21, 2023 - - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.0.3 # Use the sha / tag you want to point at hooks: - id: prettier additional_dependencies: - prettier@3.0.3 - "@prettier/plugin-xml@v3.2.1"
Published   Oct 19, 2023
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1579
Format XML · Issue #1579 · prettier/prettier-vscode
September 29, 2020 - Please add XML format feature. Reference: #505 Prettier has an official plugin for that: https://github.com/prettier/plugin-xml I wonder, Prettier formats xml but not natively xml? Weird, but ok. It's slightly different. Anyway, it would...
Published   Sep 29, 2020
🌐
Realmac Software
forums.realmacsoftware.com › lounge
Prettier⁺ for Nova - Lounge - RapidWeaver Support Forum
March 21, 2025 - Hi there, I know it’s generally considered bad manners to start a first post with a bit of unsolicited self-promotion—so if this feels improper, feel free to delete it. I recently watched @dan’s YouTube video about using ChatGPT with Nova as well as his video on Component Editing.
🌐
UNPKG
app.unpkg.com › @prettier › plugin-xml@3.4.1
prettier plugin for XML
prettier plugin for XML · github.com/prettier/plugin-xml · prettier/plugin-xml · 2 folders, 5 files · github.com/prettier/plugin-xml · prettier/plugin-xml · Latest: 3.4.2 ·
🌐
Reddit
reddit.com › r/neovim › xml formatting that "just works"?
r/neovim on Reddit: XML formatting that "just works"?
July 21, 2024 -

I can't seem to find a setup for xml formatting that formats xml in a sensible way. I'm using conform and I tried xmllint and prettier.

xmllint: I can't make it format the way I want, e.g. it simply deletes empty lines but I want to keep them. Maybe there's some parameters I can pass to it but I couldn't find a way to do it.

Prettier: It seems to be worse than xmllint. It simply doesn't format the entire file, e.g. the following block:

  <properties>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>17</maven.compiler.source>
    <maven.compiler.target>17</maven.compiler.target>
  </properties>

... remains unchanged. I can see it formats only the first xml open element, e.g. this

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >

becomes this

<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>

Does any of you guys have a setup that "just works"?