site logo

Tettra Help Docs

  • Category IconGetting Started
  • Category IconUsing Tettra
    • Category IconCategories
    • Category IconSubcategories
    • Category IconSearching in Tettra
    • Category IconPage Requests
    • Category IconPage Editor
      • Category IconCreating and Managing Pages
      • Category IconStyling and Formatting Pages
        • About styling text
        • About insert controls
        • About Table of contents
        • How to use markdown in Tettra
        • Tips on how to insert and use emojis
        • How to insert, exit, and delete a callout box
        • How to add team tags to a page
        • How to create a table in the Tettra page editor
        • Does Tettra support Markdown paste?
        • Code Blocks Overview
        • Inserting Code Blocks
        • Working with Code Blocks
      • Category IconCollaborating on Pages
    • Category IconTemplates
    • Category IconWorking with Drafts
    • Category IconQuestions and Answers
    • Category IconLinks
    • Category IconTeam Home and Sidebar
    • Category IconBookmarks
    • Category IconDoes Tettra have a mobile app?
    • Documents: Adding PDFs to Tettra
  • Category IconKai AI Features
  • Category IconIntegrations
  • Category IconUsers & Permissions
  • Category IconAccount Management
  • Category IconBilling & Payments
  • Category IconSecurity

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


Related

  • Page editor overview
  • About insert controls
Previous
Code Blocks Overview
Next
Working with Code Blocks
Powered by Tettra