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 tags in 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

Code Blocks Overview

Code blocks in Tettra pages allow you to feature formatted code. They look like this:


This is a code block.


Here are three common use cases:


Sharing a code snippet


You can share a small code snippet with your team using a code block. Here's an example of a short SQL query in a code block:


SELECT * FROM listings 
   WHERE host_id=12345678
   GROUP BY [columnsī¸]


Making text stand out


A code block can be an alternative to a callout box. Here they are next to each other for comparison:


This is a code block.


This is a callout box.


As a caption for an image


An image will most often be centered in your Tettra page. You can use a code block to insert a caption beneath it, like this:


twwWjKlL9UbcStlxX4xHn42FMQudKPCNgrFDN6Qa.png
This is a cheerful pirate ship firing a cannonball.



Related  

  • Page editor overview
  • Inserting Code Blocks
Previous
Does Tettra support Markdown paste?
Next
Inserting Code Blocks
Powered by Tettra