Werbung

Herkunft

Kurzinformation

Copies the currently selected text in the current file as colorized HTML

Syntax

<# .Synopsis Copies the currently selected text in the current file as colorized HTML .Description Copies the currently selected text in the current file as colorized HTML This allows for a user to paste colorized scripts into web pages or blogging software .Example Copy-ColoredHTML #> param() if (-not $psise.CurrentFile) { Write-Error 'You must have an open script file' return } $selectedRunspace = $psise.CurrentFile $selectedEditor=$selectedRunspace.Editor $FullText = $selectedEditor.Text -replace '\r\n', "`n" if (-not $selectedEditor.SelectedText) { $colorizedText = Write-ColorizedHTML $selectedEditor.Text } else { $colorizedText = Write-ColorizedHTML $selectedEditor.SelectedText } [Windows.Clipboard]::SetText($colorizedText)

Beschreibung

Copies the currently selected text in the current file as colorized HTMLThis allows for a user to paste colorized scripts into web pages or blogging software

Links

Liste aller Commandlets Mehr über die Windows PowerShell

Bücher zur PowerShell

Buchcover Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe) Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe)
Autoren: Dr. Holger Schwichtenberg
erschienen 2016, 996 Seiten, 49,99 €
ISBN: 3446446435
Bestellung: Amazon.de oder im Buchhandel über ISBN 3446446435

Schulungen/Seminare

Offene Seminare zur PowerShell
In-House-Seminare zur PowerShell