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

Working with Code Blocks

Working with code blocks in a Tettra page can involve changing the language, exiting the code block, or deleting it entirely.


Changing the language for syntax highlight

 Click the top right of the code block and select the language you prefer.

 

OexbWCJx2mllfyzmUTNO4ExPLHdkX4KxnkWJLWtE.gif


Exiting a code block

To exit a code block, press [Enter] twice on an empty line.

 

wCbik0ov6jmCsLFVs47xzoxlpSgzFWs2J7Ji9G5V.gif


Deleting a code block

To delete a code block, delete all content, then hit backspace.

 

bj6cmiwJWOdnf6XjUsjc1uVaMz2Vex1YFB9mhvPm.gif


Related

  • Page editor overview
  • Inserting Code Blocks
Previous
Inserting Code Blocks
Next
About the Knowledge Management Dashboard
Powered by Tettra