HtmlEditor

Script: HtmlEditor.ps1 (run from a folder such as C:\Scripts)
Entry point: run the script directly (opens the editor window)
Requires: Windows PowerShell 5.1 (STA) or PowerShell 7 on Windows

Overview

A lightweight WYSIWYG HTML editor written in PowerShell. It is a WPF window hosting the IE11-engine WebBrowser control — no WebView2 and no extra DLLs. You edit the page directly, using the styles the page's own CSS already defines.

Features

Parameters

NameRequiredDefaultPurpose
PathNo—HTML file to open at startup
DiagnosticNooffWrite a verbose trace to the log
InProcessNooffRun in the current process (troubleshooting)

Requirements

Usage

# Launch the editor
powershell.exe -STA -NoProfile -ExecutionPolicy Bypass -File C:\Scripts\HtmlEditor.ps1

# Open a specific file
C:\Scripts\HtmlEditor.ps1 -Path C:\Web\sample.html

# Verbose trace to the log
C:\Scripts\HtmlEditor.ps1 -Diagnostic

Known limits

See also