2023-02-02 15:36:15 +01:00
|
|
|
<!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">
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-02-03 00:46:44 +01:00
|
|
|
|
2023-02-03 03:32:52 +01:00
|
|
|
Just JS
|
2023-02-03 03:54:28 +01:00
|
|
|
{% highlight js %}
|
|
|
|
function myFunction() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
{% endhighlight %}
|
2023-02-02 15:36:15 +01:00
|
|
|
|
2023-02-03 03:32:52 +01:00
|
|
|
Just JS multiline
|
2023-02-03 00:46:44 +01:00
|
|
|
|
2023-02-02 15:36:15 +01:00
|
|
|
{% 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
|
2023-02-02 15:36:15 +01:00
|
|
|
`;
|
|
|
|
{% endhighlight %}
|
|
|
|
|
2023-02-03 03:32:52 +01:00
|
|
|
JS + Linehighlight
|
2023-02-02 15:36:15 +01:00
|
|
|
{% 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
|
2023-02-02 15:36:15 +01:00
|
|
|
`;
|
|
|
|
{% endhighlight %}
|
2023-02-03 00:46:44 +01:00
|
|
|
|
2023-02-06 15:45:32 +01:00
|
|
|
JS + Linehighlight with /
|
|
|
|
{% highlight js/1,3 %}
|
|
|
|
let multilineString = `
|
|
|
|
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
|
2023-02-03 00:46:44 +01:00
|
|
|
|
|
|
|
{% 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
|
2023-02-03 00:46:44 +01:00
|
|
|
`;
|
|
|
|
{% endhighlight %}
|
|
|
|
|
2023-02-03 03:32:52 +01:00
|
|
|
Swift + show lineNumbers + highlight 1 & 3
|
2023-02-03 00:46:44 +01:00
|
|
|
|
|
|
|
{% 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
|
2023-02-03 00:46:44 +01:00
|
|
|
`;
|
|
|
|
{% endhighlight %}
|
|
|
|
|
2023-02-03 03:32:52 +01:00
|
|
|
Swift + show lineNumbers + highlight 1 & 3
|
2023-02-03 00:46:44 +01:00
|
|
|
|
2023-02-03 03:32:52 +01:00
|
|
|
{% highlight swift lineNumbers 2:3 table %}
|
2023-02-03 00:46:44 +01:00
|
|
|
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
|
2023-02-03 00:46:44 +01:00
|
|
|
`;
|
|
|
|
{% endhighlight %}
|
|
|
|
|
2023-02-02 15:36:15 +01:00
|
|
|
</body>
|
2023-02-03 03:32:52 +01:00
|
|
|
</html>
|