Skip to content

add new snippet: HTML header #1559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 23, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/community_snippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ _To contribute, check out our [guide here](#contributing)._
| [DataTable](#datatable) | _Creates a DataTable_ |
| [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_ |
| [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_ |
Expand Down Expand Up @@ -177,6 +178,34 @@ Quickly add a fully defined error record and throw. by @omniomi
}
```

### 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 = @\"",
"<!doctype html\">",
"<html lang=\"e\">",
"<head>",
"<meta charset=\"UTF-8\">",
"<title>${1:Title}</title>",
"<style type=\"text/css\">",
"body {",
"}",
"</style>",
"</head>",
"\"@"
],
"description": "Add HTML header section"
}
```

### IfShouldProcess

Add If Should Process with easy tab inputs
Expand Down