site logo

Tettra Help Docs

Inserting Code Blocks

There are three ways to insert a code block in a Tettra page:


Via the insert controls

Navigate to a page and press the add icon on the left of an empty line to bring up the insert menu. Press Code for a code block.


Learn more about the insert controls feature here.


iDmePFNHc3j2A0tANsjagtBUb9wWkoutYLf19kE5.gif


Via the highlight controls

If you want to convert some text to a code block, you can use the highlight controls feature. Just highlight the text and the menu will show up. After which, click the code icon.


Learn more about the highlight controls feature here.

 

tPMDnCUJVEfo3OpIO9oMKuHfULJclEeZaQIuQaDx.gif


Via auto-markdown (backticks ```) 

You may also start a new code block by typing 3 backticks (```) followed by [Space] or [Enter].

 

xm2MU1sHjPpGV50bKu8W6rcI3kNCnUH4TGtBWzlg.gif