Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>xml2rfc PreviewNew to Visual Studio Code? Get it now.
xml2rfc Preview

xml2rfc Preview

npmccallum

|
21 installs
| (0) | Free
Preview RFC XML files as HTML and see xml2rfc warnings and errors in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

xml2rfc Preview

Preview RFC XML files as HTML and see xml2rfc warnings and errors directly in VS Code.

What it does

  • Shows xml2rfc warnings and errors in the Problems panel as you type
  • Generates HTML previews of RFC XML documents
  • Updates automatically as you edit the XML content

Requirements

  • Install xml2rfc: pip install xml2rfc
  • VS Code 1.75.0 or later

Recommended: Install a generic XML extension like XML by Red Hat for general XML validation and formatting. This extension only shows xml2rfc-specific errors.

Usage

  1. Open an RFC XML file in VS Code
  2. xml2rfc warnings and errors appear automatically in the Problems panel
  3. Click the preview button (📄 icon) in the editor title bar
  4. HTML preview opens in a side panel

Troubleshooting

  • xml2rfc not found: Make sure xml2rfc is installed and in your PATH
  • No preview appears: Only works with valid RFC XML files (must have <rfc> root element)
  • XML errors: Check the Problems panel for detailed error locations

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft