eleventy-plugin-syntaxhighl.../demo/test-liquid.liquid

69 lines
1.3 KiB
Plaintext
Raw Normal View History

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" href="../test.css">
2023-02-03 03:32:52 +01:00
<!-- <link rel="stylesheet" href="../prism-theme.css"> -->
</head>
<body>
2023-02-03 03:32:52 +01:00
Just JS
{% highlight js %}
function myFunction() {
return true;
}
{% endhighlight %}
2023-02-03 03:32:52 +01:00
Just JS multiline
{% highlight js %}
let multilineString = `
2023-02-03 03:32:52 +01:00
this is the first line
this is the middle line
this is the last line
`;
{% endhighlight %}
2023-02-03 03:32:52 +01:00
JS + Linehighlight
{% highlight js 1,3 %}
let multilineString = `
2023-02-03 03:32:52 +01:00
this is the first line
this is the middle line
this is the last line
`;
{% endhighlight %}
2023-02-03 03:32:52 +01:00
Swift + show lineNumbers
{% highlight swift lineNumbers %}
let multilineString = `
2023-02-03 03:32:52 +01:00
this is the first line
this is the middle line
this is the last line
`;
{% endhighlight %}
2023-02-03 03:32:52 +01:00
Swift + show lineNumbers + highlight 1 & 3
{% highlight swift lineNumbers 1,3 %}
let multilineString = `
2023-02-03 03:32:52 +01:00
this is the first line
this is the middle line
this is the last line
`;
{% endhighlight %}
2023-02-03 03:32:52 +01:00
Swift + show lineNumbers + highlight 1 & 3
2023-02-03 03:32:52 +01:00
{% highlight swift lineNumbers 2:3 table %}
let multilineString = `
2023-02-03 03:32:52 +01:00
this is the first line
this is the middle line
this is the last line
`;
{% endhighlight %}
</body>
2023-02-03 03:32:52 +01:00
</html>