Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 1d89f5e

Browse files
test: update highlight code test demo
1 parent d0cd8b5 commit 1d89f5e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

webcomponents/highlight-code/src/index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
<script nomodule src="/build/deckdeckgo-highlight-code.js"></script>
1010
</head>
1111
<body>
12-
<deckgo-highlight-code language="t4">
13-
<code slot="code">
14-
<html>
15-
<body>
16-
The date and time now is: <#= DateTime.Now #>
17-
</body>
18-
</html>
19-
</code>
20-
</deckgo-highlight-code>
2112
<h1>Editable:</h1>
2213

2314
<!-- prettier-ignore -->
@@ -217,9 +208,9 @@ <h1>Without line numbers</h1>
217208
<h1>Without dots</h1>
218209

219210
<!-- prettier-ignore -->
220-
<deckgo-highlight-code
221-
language="java"
222-
highlight-lines="0,2 6,6"
211+
<deckgo-highlight-code
212+
language="java"
213+
highlight-lines="0,2 6,6"
223214
style="--deckgo-highlight-code-carbon-toolbar-display: none; --deckgo-highlight-code-carbon-header-padding: 0; --deckgo-highlight-code-carbon-header-margin: 16px 0 0 0;"
224215
>
225216
<code slot="code">interface NumericTest {
@@ -263,6 +254,21 @@ <h1>Issue #423</h1>
263254
}</code>
264255
</deckgo-highlight-code>
265256

257+
<h1>Load extra scripts</h1>
258+
259+
<p>Main language:</p>
260+
261+
<!-- prettier-ignore -->
262+
<deckgo-highlight-code language="php">
263+
<code slot="code">'Hello World'</code>
264+
</deckgo-highlight-code>
265+
266+
<p>Alias language:</p>
267+
268+
<deckgo-highlight-code language="t4">
269+
<code slot="code"> The date and time now is: <#= DateTime.Now #> </code>
270+
</deckgo-highlight-code>
271+
266272
<h1>Src file:</h1>
267273

268274
<deckgo-highlight-code
@@ -272,11 +278,5 @@ <h1>Src file:</h1>
272278
src="https://raw.githubusercontent.com/deckgo/deckdeckgo/master/webcomponents/core/src/components/deck/deckdeckgo-deck/deckdeckgo-deck.tsx"
273279
>
274280
</deckgo-highlight-code>
275-
276-
<h1>Load extra scripts</h1>
277-
<!-- prettier-ignore -->
278-
<deckgo-highlight-code language="php">
279-
<code slot="code">'Hello World'</code>
280-
</deckgo-highlight-code>
281281
</body>
282282
</html>

0 commit comments

Comments
 (0)