plugin-xml
plugin-xml copied to clipboard
Prettier XML plugin
given ```xml ``` I would like the reformat to be ```xml ``` instead of ```xml ``` note: obviously I've turned off whitespace sensitivity. I feel like this would be a...
I am using the following settings and it's not formatting .cls apex class files and giving the error "Couldn't resolve parser "apex"" **Logs**: ["INFO" - 2:08:41 AM] Formatting file:///c%3A/Users/myusername/Desktop/Workspace/VS%20Code/DevEdProj1/force-app/main/default/classes/Demo1.cls ["DEBUG"...
In XSLT, it is common to put empty lines between tags: ```xml Article - Authors: - ``` But at this moment all old files collapse empty lines Suggest to add...
Stack trace ```bash TypeError: Cannot read properties of undefined (reading 'toLowerCase') at getParser (file:///Users/shane/repos/brm/node_modules/@prettier/plugin-xml/src/embed.js:56:21) at embed (file:///Users/shane/repos/brm/node_modules/@prettier/plugin-xml/src/embed.js:121:18) at recurse (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:22194:20) at AstPath.each (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:20791:9) at recurse (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:22189:16) at AstPath.call (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:20753:14) at...
Prettier's formatWithCursor can crash if a node is missing a valid `location` object. This patch adds null-safe checks and fallback handling in `locStart` and `locEnd` to avoid TypeErrors and ensure...
Add a new option called `xmlSortAttributesFirst`, this allows to sort attributes in a fixed way. For example if I were to have an `id` field on my XML and I...
**Description:** I encountered a problem with the @prettier/plugin-xml plugin. When an XML file contains the text: ```xml '' ```  Prettier rewrites it as: ```xml ' ' ```  This...