Skip to content

Commit e6d2136

Browse files
vmsilvamolinaTylerLeonhardt
authored andcommitted
add new snippet: HTML header (#1559)
1 parent 777d4bf commit e6d2136

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/community_snippets.md

+30
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ _To contribute, check out our [guide here](#contributing)._
2525
| [DateTimeWriteVerbose](#datetimewriteverbose) | _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ |
2626
| [Error-Terminating](#error-terminating) | _Create a full terminating error by @omniomi_ |
2727
| [Exchange Online Connection](exchange-online-connection) | _Create a connection to Exchange Online by @vmsilvamolina_ |
28+
| [HTML header](#html-header) | _Add HTML header with the style tag by @vmsilvamolina_ |
2829
| [IfShouldProcess](#ifshouldprocess) | _Added If Should Process_ |
2930
| [MaxColumnLengthinDataTable](#maxcolumnlengthindatatable) | _Gets the max length of string columns in datatables_ |
3031
| [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
178179
}
179180
```
180181

182+
181183
### Exchange Online Connection
182184

183185
Connect to Exchange Online, by @vmsilvamolina
@@ -200,6 +202,34 @@ Connect to Exchange Online, by @vmsilvamolina
200202
}
201203
```
202204

205+
### HTML header
206+
207+
Add HTML header to a variable with the style tag (for css).
208+
209+
#### Snippet
210+
211+
```json
212+
"HtML header": {
213+
"prefix": "ex-AddHTMLheader",
214+
"body": [
215+
"#HTML file and styles",
216+
"\\$htmlHeader = @\"",
217+
"<!doctype html\">",
218+
"<html lang=\"e\">",
219+
"<head>",
220+
"<meta charset=\"UTF-8\">",
221+
"<title>${1:Title}</title>",
222+
"<style type=\"text/css\">",
223+
"body {",
224+
"}",
225+
"</style>",
226+
"</head>",
227+
"\"@"
228+
],
229+
"description": "Add HTML header section"
230+
}
231+
```
232+
203233
### IfShouldProcess
204234

205235
Add If Should Process with easy tab inputs

0 commit comments

Comments
 (0)