FreeMarker XML Formatter READMEAuthor: Franco Zambon Last modified: February 25, 2025 The FreeMarker XML Formatter is a Visual Studio Code extension designed to format XML files that contain FreeMarker code. It ensures proper indentation and structure, even when complex FreeMarker directives are embedded within the XML. FeaturesThis extension provides:
To use the formatter on Windows press Ctrl + Shift + P (Cmd + Shift + P on Mac) and digit 'Format FreeMarker-XML File'. Then press Enter. Otherwise you can use the shortcut Ctrl + Alt + F on Windows or Ctrl + Option + F on Mac. You can select the area that you want to format. If you don't select any specific area the formatting rules will be applied on the whole document. NOTE: FreeMarker formatting is enabled ONLY INSIDE <#function> blocks. Outside of those blocks FreeMarker code follows the XML indentation. RequirementsVisual Studio Code (version 1.60.0 or later). No external dependencies required. Known IssuesThe handling of tags inserted within the ${} syntax needs improvement. Additionally, the handling of XML tags present within Freemarker's <#macro> tags can be improved. Release Notes1.0.1February 22, 2025 - Initial release 1.1.0February 25, 2025 - Bug fixing and new feature 1.1.1February 25, 2025 - Bug fixing 1.1.2February 25, 2025 - Bug fixing Enjoy! |