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.
Starred by 274 users
Forked by 40 users
Languages JavaScript
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 ·
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
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
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
XML formatting that "just works"?
Please remember to update the post flair to Need Help|Solved when you got the answer you were looking for. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
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 to format XML files using the HTML formatter (I would even suggest adding *.xml to the extensions list for the HTML formatter)? I'd like to force this in my global prettier configuration. The XML plugin (https://github.com/prettier/plugin-xml) has serious ...
Author prettier
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
Stack Exchange
salesforce.stackexchange.com › questions › 415949 › how-can-i-get-prettier-to-properly-format-perm-set-xml-files-with-flowaccess
metadata - How can I get `prettier` to properly format perm set XML files with `flowAccess`? - Salesforce Stack Exchange
Regardless, the <flow> tag in the XML seems to be getting messed up by this. The solution is to add "embeddedLanguageFormatting": "off" to .prettierrc.
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
Repository https://github.com/prettier/plugin-xml
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 ·
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 ·
Prettier
prettier.io › docs › configuration
Configuration File · Prettier
A .prettierrc file written in JSON or YAML.
npm
npmjs.com › package › prettier-plugin-embed
prettier-plugin-embed - npm
December 19, 2025 - Description: Tags that make their subsequent template literals be identified as embedded XML language. This option requires the @prettier/plugin-xml plugin.
» npm install prettier-plugin-embed
Published Dec 19, 2025
Version 0.5.1
Author Ze-Zheng Wu
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-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...
Author infacto
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 18, 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"?
Top answer 1 of 4
2
Please remember to update the post flair to Need Help|Solved when you got the answer you were looking for. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2 of 4
2
I was using xmlformatter on mason that worked well but had a bug where it screwed up escaped qoutes. I recently switched to the prettier xml extension and am using the parameter "--xml-whitespace-sensitivity ignore" which for me does what I want however I am currently having an issue where it prepends the file with an invalid character everytime it runs and haven't yet bothered to debug it.