How to work with code snippets in Zoho Writer

How to work with code snippets in Zoho Writer

Overview

Use code snippets in Writer to document, review, and discuss code within your documents. Writer supports more than 13 common programming languages and provides formatting options such as themes and line numbering.

Prerequisites

  1. Code content ready to type or paste

Steps

How to insert a code snippet

  1. Place your cursor where you want to insert the code.
  2. Go to Insert tab --> Code.
  3. Type or paste your code into the code window.
  4. Select your programming language from the dropdown.
  5. (Optional) Choose a theme and enable Line numbering.



How to add line numbers to code blocks

  1. When inserting a code snippet, use the Line numbering toggle inside the code editor to show or hide line numbers.

    Line numbering for Code Blocks in Writer

Troubleshooting

1. Error/Symptom: Code snippet not appearing correctly
Possible cause: Incorrect language selection or formatting.
Solution: Reopen the code block, verify the language, and adjust the theme.

2. Error/Symptom: Line numbers not visible
Possible cause: Line numbering not enabled.
Solution: Edit the code block and enable the Line numbering option.