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
Copy file name to clipboardExpand all lines: tests/dummy/app/pods/docs/components/docs-snippet/template.hbs
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,4 +54,17 @@
54
54
55
55
<h2>Customizing Snippets</h2>
56
56
57
-
<p></p>
57
+
<p>By default, snippets will render with a button allowing readers to copy the snippet's contents to their clipboard. You can turn this off by passing <code>showCopy=false</code> to <code>\{{docs-snippet}}</code></p>
58
+
59
+
<p>You can override the detected language for syntax highlighting in your snippet by specifying a <code>language</code> property.</p>
60
+
61
+
<p>Finally, you can use the <code>title</code> property to specify a header for your snippet, for instance to specify the file your snippet would be found in.</p>
0 commit comments