diff --git a/docs/community_snippets.md b/docs/community_snippets.md index c18cc6d32f..85e2d013ec 100644 --- a/docs/community_snippets.md +++ b/docs/community_snippets.md @@ -25,6 +25,7 @@ _To contribute, check out our [guide here](#contributing)._ | [DateTimeWriteVerbose](#datetimewriteverbose) | _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ | | [Error-Terminating](#error-terminating) | _Create a full terminating error by @omniomi_ | | [Exchange Online Connection](exchange-online-connection) | _Create a connection to Exchange Online by @vmsilvamolina_ | +| [HTML header](#html-header) | _Add HTML header with the style tag by @vmsilvamolina_ | | [IfShouldProcess](#ifshouldprocess) | _Added If Should Process_ | | [MaxColumnLengthinDataTable](#maxcolumnlengthindatatable) | _Gets the max length of string columns in datatables_ | | [New Azure Resource Group](#new-azure-resource-group) | _Create an Azure Resource group by @vmsilvamolina_ | @@ -178,6 +179,7 @@ Quickly add a fully defined error record and throw. by @omniomi } ``` + ### Exchange Online Connection Connect to Exchange Online, by @vmsilvamolina @@ -200,6 +202,34 @@ Connect to Exchange Online, by @vmsilvamolina } ``` +### HTML header + +Add HTML header to a variable with the style tag (for css). + +#### Snippet + +```json +"HtML header": { + "prefix": "ex-AddHTMLheader", + "body": [ + "#HTML file and styles", + "\\$htmlHeader = @\"", + "", + "", + "
", + "", + "