File: inline-languages.txt

package info (click to toggle)
highlight.js 10.7.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,332 kB
  • sloc: javascript: 41,059; makefile: 157; python: 29; sh: 20
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 JavaScript mode.
var foo = 10;