2022-02-16 23:21:22 +01:00
|
|
|
+++
|
2022-10-31 12:10:36 +01:00
|
|
|
description = "Some testing for different styles used in syntax highlighting and preformatted blocks"
|
2022-02-16 23:21:22 +01:00
|
|
|
title = "Code"
|
|
|
|
+++
|
|
|
|
|
2022-10-31 12:10:36 +01:00
|
|
|
Some testing for different styles used in syntax highlighting and preformatted blocks.
|
2022-02-16 23:21:22 +01:00
|
|
|
|
|
|
|
## Inline Code
|
|
|
|
|
|
|
|
`This is some very long inline code. Where does it wrap?`
|
|
|
|
|
|
|
|
What about wrapping short inline code if multiple sections are written `side` `by` `side`?
|
|
|
|
|
|
|
|
What about wrapping short inline code if multiple sections are written `side`/`by`/`side`?
|
|
|
|
|
|
|
|
What about wrapping long inline code if multiple sections are written `side567` `by34567` `side567`?
|
|
|
|
|
|
|
|
What about wrapping long inline code if multiple sections are written `side567`/`by34567`/`side567`?
|
|
|
|
|
|
|
|
Can we just use a <code>simple HTML element </code>?
|
|
|
|
|
|
|
|
## Block Code
|
|
|
|
|
|
|
|
````
|
|
|
|
Code fences without any selected language
|
|
|
|
````
|
|
|
|
|
|
|
|
````json
|
|
|
|
{
|
|
|
|
"well": "some JSON in codefences in here"
|
|
|
|
}
|
|
|
|
````
|
|
|
|
|
2022-02-17 20:09:50 +01:00
|
|
|
<pre><code>{
|
2022-02-16 23:21:22 +01:00
|
|
|
"well": "some JSON in HTML elements here"
|
|
|
|
}
|
|
|
|
</code></pre>
|
|
|
|
|
2022-07-03 15:01:19 +02:00
|
|
|
````jsonxmylmsl
|
|
|
|
{
|
2022-10-31 12:10:36 +01:00
|
|
|
"well": "Code fences with non existing language"
|
2022-07-03 15:01:19 +02:00
|
|
|
}
|
|
|
|
````
|
|
|
|
|
2022-02-16 23:21:22 +01:00
|
|
|
## Block Preformatted
|
|
|
|
|
2022-10-31 12:10:36 +01:00
|
|
|
Some preformatted stuff with markdown indentation
|
2022-02-16 23:21:22 +01:00
|
|
|
|
|
|
|
<pre>
|
|
|
|
Some preformatted stuff in HTML elements
|
|
|
|
</pre>
|
2023-06-15 19:35:35 +02:00
|
|
|
|
|
|
|
## Nested Shortcode
|
|
|
|
|
|
|
|
### 1 Shortcode
|
|
|
|
|
|
|
|
#### %%
|
|
|
|
|
|
|
|
{{% highlight json "linenos=inline" %}}
|
|
|
|
{
|
|
|
|
"Hello": "World" "Hello": "World" "Hello": "World"
|
|
|
|
}
|
|
|
|
{{% /highlight %}}
|
|
|
|
|
|
|
|
#### <>
|
|
|
|
|
|
|
|
{{< highlight json "linenos=table" >}}
|
|
|
|
{
|
|
|
|
"Hello": "World" "Hello": "World" "Hello": "World"
|
|
|
|
}
|
|
|
|
{{< /highlight >}}
|
|
|
|
|
|
|
|
### 2 Shortcodes
|
|
|
|
|
|
|
|
#### %% %%
|
|
|
|
|
|
|
|
{{% tab title="json" %}}
|
|
|
|
{{% highlight html "linenos=true" %}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{% /highlight %}}
|
|
|
|
{{% /tab %}}
|
|
|
|
|
|
|
|
#### %% <>
|
|
|
|
|
|
|
|
{{% tab title="json" %}}
|
|
|
|
{{< highlight html "linenos=true" >}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{< /highlight >}}
|
|
|
|
{{% /tab %}}
|
|
|
|
|
|
|
|
#### <> %%
|
|
|
|
|
|
|
|
{{< tab title="json" >}}
|
|
|
|
{{% highlight html "linenos=true" %}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{% /highlight %}}
|
|
|
|
{{< /tab >}}
|
|
|
|
|
|
|
|
#### <> <>
|
|
|
|
|
|
|
|
{{< tab title="json" >}}
|
|
|
|
{{< highlight html "linenos=true" >}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{< /highlight >}}
|
|
|
|
{{< /tab >}}
|
|
|
|
|
|
|
|
### 3 Shortcodes
|
|
|
|
|
|
|
|
#### %% %% %%
|
|
|
|
|
|
|
|
{{% tabs %}}
|
|
|
|
{{% tab title="json" %}}
|
|
|
|
{{% highlight html "linenos=true" %}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{% /highlight %}}
|
|
|
|
{{% /tab %}}
|
|
|
|
{{% /tabs %}}
|
|
|
|
|
|
|
|
#### %% %% <>
|
|
|
|
|
|
|
|
{{% tabs %}}
|
|
|
|
{{% tab title="json" %}}
|
|
|
|
{{< highlight html "linenos=true" >}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{< /highlight >}}
|
|
|
|
{{% /tab %}}
|
|
|
|
{{% /tabs %}}
|
|
|
|
|
|
|
|
#### %% <> %%
|
|
|
|
|
|
|
|
{{% tabs %}}
|
|
|
|
{{< tab title="json" >}}
|
|
|
|
{{% highlight html "linenos=true" %}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{% /highlight %}}
|
|
|
|
{{< /tab >}}
|
|
|
|
{{% /tabs %}}
|
|
|
|
|
|
|
|
#### %% <> <>
|
|
|
|
|
|
|
|
{{% tabs %}}
|
|
|
|
{{< tab title="json" >}}
|
|
|
|
{{< highlight html "linenos=true" >}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{< /highlight >}}
|
|
|
|
{{< /tab >}}
|
|
|
|
{{% /tabs %}}
|
|
|
|
|
|
|
|
#### <> %% %%
|
|
|
|
|
|
|
|
{{< tabs >}}
|
|
|
|
{{% tab title="json" %}}
|
|
|
|
{{% highlight html "linenos=true" %}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{% /highlight %}}
|
|
|
|
{{% /tab %}}
|
|
|
|
{{< /tabs >}}
|
|
|
|
|
|
|
|
#### <> %% <>
|
|
|
|
|
|
|
|
{{< tabs >}}
|
|
|
|
{{% tab title="json" %}}
|
|
|
|
{{< highlight html "linenos=true" >}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{< /highlight >}}
|
|
|
|
{{% /tab %}}
|
|
|
|
{{< /tabs >}}
|
|
|
|
|
|
|
|
#### <> <> %%
|
|
|
|
|
|
|
|
{{< tabs >}}
|
|
|
|
{{< tab title="json" >}}
|
|
|
|
{{% highlight html "linenos=true" %}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{% /highlight %}}
|
|
|
|
{{< /tab >}}
|
|
|
|
{{< /tabs >}}
|
|
|
|
|
|
|
|
#### <> <> <>
|
|
|
|
|
|
|
|
{{< tabs >}}
|
|
|
|
{{< tab title="json" >}}
|
|
|
|
{{< highlight html "linenos=true" >}}
|
|
|
|
<p>my code</p>
|
|
|
|
{{< /highlight >}}
|
|
|
|
{{< /tab >}}
|
|
|
|
{{< /tabs >}}
|