File: inline-languages.txt

package info (click to toggle)
highlight.js 9.18.5%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 6,672 kB
  • sloc: javascript: 40,928; python: 342; makefile: 160; sh: 11
file content (24 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
let foo = true;
`hello ${foo ? `Mr ${name}` : 'there'}`;
foo = false;

html`<div id="foo">Hello world</div>`;

html`<div id="foo">Hello times ${10} <span id="bar">world</span></div>`;

html`
  <ul id="list">
    ${repeat(['a', 'b', 'c'], (v) => {
      return html`<li class="item">${v}</li>`;
    }}
  </ul>
`;

css`
  body {
    color: red;
  }
`;

// Ensure that we're back in TypeScript mode.
var foo = 10;