Parish Archive

Code

Code blocks with a language, a title, line numbers and highlighted lines

A code block keeps the text exactly as written, with a copy button. In this archive it is mostly useful for text to copy, such as a song, a message for the parents or a template.

Code block

Name the language after the three backticks to color it: text, markdown, html, python, yaml and many more.

Dear parents, the meeting is on Saturday at 15:00 in the parish hall.
Please bring a snack to share.
```text
Dear parents, the meeting is on Saturday at 15:00 in the parish hall.
Please bring a snack to share.
```
[source,text]
----
Dear parents, the meeting is on Saturday at 15:00 in the parish hall.
Please bring a snack to share.
----
<pre><code class="language-text">Dear parents, the meeting is on Saturday at 15:00 in the parish hall.
Please bring a snack to share.</code></pre>

Code block with a title

Message for the parents
The summer camp starts on Monday 6 July at 8:30.
```text title="Message for the parents"
The summer camp starts on Monday 6 July at 8:30.
```
.Message for the parents
[source,text]
----
The summer camp starts on Monday 6 July at 8:30.
----
<p><strong>Message for the parents</strong></p>
<pre><code class="language-text">The summer camp starts on Monday 6 July at 8:30.</code></pre>

Highlighted lines and numbering

linesHighlight marks lines, for example 2 or 1,3-4. linesStart starts the numbering from another line.

Song: chorus
Rejoice in the Lord always,
again I say rejoice!
Rejoice in the Lord always,
again I say rejoice!
```text title="Song: chorus" linesHighlight="2" linesStart=5
Rejoice in the Lord always,
again I say rejoice!
Rejoice in the Lord always,
again I say rejoice!
```
.Song: chorus
[source,text,linenums,start=5,highlight=2]
----
Rejoice in the Lord always,
again I say rejoice!
Rejoice in the Lord always,
again I say rejoice!
----
<p><strong>Song: chorus</strong></p>
<pre><code class="language-text">Rejoice in the Lord always,
again I say rejoice!
Rejoice in the Lord always,
again I say rejoice!</code></pre>