You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/ProAngular/community)
18
-
[](https://github.com/ProAngular/ngx-gist/actions/workflows/on-merge-main-deploy-gpr.yml)
19
-
[](https://github.com/ProAngular/ngx-gist/actions/workflows/on-merge-main-deploy-npmjs.yml)
@@ -146,7 +148,7 @@ You can also display any number of specific files by name.
146
148
147
149
### Displaying a basic code snippet (without a remote gist)
148
150
149
-
These are not fetched from GitHub and are brought in elsewhere from your application (seperate HTTP request, or statically for example). With this method you can display code snippets without having to create a remote gist. Also, please notice here that no "Open Gist on GitHub" link is displayed here.
151
+
These are not fetched from GitHub and are brought in elsewhere from your application (seperate HTTP request, or statically for example). With this method you can display code snippets without having to create a remote gist. Also, please notice here that no "Open Gist on GitHub" link will display as well.
150
152
```html
151
153
<ngx-gist[gist]="localGistObject"></ngx-gist>
152
154
```
@@ -166,7 +168,7 @@ Line numbers are enabled by default, but you can turn them off like so.
166
168
| Input Name | Input Typing | Default Value | Description |
|**displayOnlyFileNames**|`string \| readonly string[] \| undefined`|`undefined`| Display in the DOM only the selected filename(s) from the gists files array. Can be either a string or string array. File names much match exactly, be sure to remove any leading or trailing whitespace in the provided strings. |
169
-
|**hideGistLink**|`bool`|`false`| Optionally hide the gist link which opens the gist on GitHub. The gist links automatically dispaly for remote gists, but can be hidden with this feature. |
171
+
|**hideGistLink**|`bool`|`false`| Optionally hide the gist link which opens the gist on GitHub. The gist links automatically display for remote gists, but can be hidden with this feature. |
170
172
|**gist**|`NgxGist \| undefined`|`undefined`| Provide a static gist model here directly which will be displayed if no `gistId` is provided for remote fetching. Also this model will be displayed should a fetch fail when retrieving `gistId`, or overwritten once the pertaining `gistId` data is fetched. |
171
173
|**gistId**|`string`|`undefined`| Provide the GitHub gist id to be fetched and loaded. This can be found in URL of the gists you create. For example the id `TH1515TH31DT0C0PY` in: https://gist.github.com/YourUserName/TH1515TH31DT0C0PY. Alternatively, provide a value directly in the sibling input `gist`. |
172
174
|**languageName**|`string \| undefined`|`undefined`| When defined, override automatic language detection [and styling] and treat all gists as this lanuage. See supported language strings here: https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md|
@@ -205,8 +207,8 @@ Thank you for any and all contributions!
205
207
# Donation
206
208
207
209
As a husband and father of four children, your donations mean the world to me! Any donations are greatly appreciated and keep me going!
0 commit comments