How to use Preformated text ? other than backticks ? I think im using it wrong

How to use Preformated text ? other than ``` I think im using it wrong

In which context?

when i click on it i get

this indent preformatted text by 4 spaces

yep - that is correct

you can prepend lines - multiple lines with 4 spaces - this equals a fence of 3 back ticks before first line and after last line.

if you fence a block of space indented lines the spaces are treated are as literal chars - thus indenting the lines inside the fence.

its not working

where should my text be ?

This is a 4 space indented line

This is a 4 space indented block
With multiple lines

This is a fenced block
With multiple lines

    This is a 4 space indented block
    With multiple lines
    but with code fence three back ticks 
    **before** first line and **after** last line
    And as you can see everything is fenced.

To see the raw version of the this comment

1 Like

Thank you for explaining that

but its not working for me

so i will just use ```

If it is not working for you - then you do not have four spaces - and code fence vs. indent will behave differently if not placed on separate lines.

You can also use single backtick to make a single word in a sentence stand as code.

1 Like
2 Likes

Thank u very useful Link

so i can understand better :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.