To make the left and right brackets you have to use following html-codes:
left-curly-bracket: & # 1 2 3 ;
right-curly-bracket: & # 1 2 5;
WITHOUT the spaces !
So the text needs to be:
Type in & # 1 2 3 ; & # 1 2 3 ; page.somevariable & # 1 2 5 ; & # 1 2 5 ; (Witout the spaces)
This will then output:
Type in {{ page.somevariable }}
This is now just for reference if somebody has the same problem.
this is what the {% raw %} {% endraw %} tag is for.
Jekyll processes all Liquid filters in code blocks
If you are using a language that contains curly braces, you will likely need to place {% raw %} and {% endraw %} tags around your code. Since Jekyll 4.0 , you can add render_with_liquid: false in your front matter to disable Liquid entirely for a particular document.