Skip to content

Copy Query for Web Paste

Alex Bochkov edited this page Jul 20, 2026 · 3 revisions

Deprecated as this has been solved with the preview feature.

image

This command copies the active query window contents with syntax colors and font styling so you can paste directly into HTML-aware clients such as Outlook Web Access (OWA), GMail, and other rich editors.

  • Working with clipboard is tricky - I still don't understand what made it work stable while before it couldn't write to buffer reliably.
  • Bright lime syntax color (rgb(0, 255, 0)) adjusted to a darker green (rgb(0, 180, 0)) so code remains readable on white backgrounds. No other changes to styles is done.
image

Gmail result:

image

Outlook-online result:

image

Word result (no changes - the default SSMS behavior):

image

Clone this wiki locally