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.
<style> blocks and linked local stylesheets. Offers block tags (p, h1–h6, blockquote, pre, address, div) and simple classes, plus (clear style).Ctrl+Alt+H); the last color is remembered.Tab / Shift+Tab, Alt+Shift+Right / Alt+Shift+Left. List items nest and un-nest; other blocks step in 0.5 inch.html, head, body, style/CSS, pre); script and textarea contents are left alone.</body> are kept exactly. Files are saved as UTF-8 without BOM.Ctrl+N, Ctrl+O, Ctrl+S, Ctrl+Shift+S, Ctrl+B, Ctrl+I, Ctrl+Z. Toolbar Undo covers style, color, size, highlight and indent changes.%LOCALAPPDATA%\HtmlEditor\HtmlEditor.log; repeated errors are counted instead of flooding the console; a circuit breaker stops a runaway timer; a recovery copy is written if the editor has to close.| Name | Required | Default | Purpose |
|---|---|---|---|
Path | No | — | HTML file to open at startup |
Diagnostic | No | off | Write a verbose trace to the log |
InProcess | No | off | Run in the current process (troubleshooting) |
-STA if needed), or PowerShell 7 on Windows.FEATURE_BROWSER_EMULATION (IE11 mode) to HKCU and keeps its settings in HKCU\Software\HtmlEditor.# 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
#id, @ rules) are not offered in the Style list.<span style> and margin-left; IE may save colors as rgb().Tab in a table cell inserts spaces.HtmlEditor.ps1