View Categories

Creating and sharing text snippets

2 min read

Workly lets you create text snippets — formatted text files that you can share in chat. Snippets are perfect for sharing code, configuration files, notes, or any long-form text that would be messy as a regular message.

Create a snippet

  1. In the chat input, click the snippet icon
  2. Enter a title for the snippet
  3. Choose a file type:
    • txt — Plain text
    • js — JavaScript
    • py — Python
    • html — HTML
    • css — CSS
    • json — JSON
    • And many more
  4. Write or paste the content
  5. Click Create

The snippet appears in chat as a formatted file attachment. The title is auto-generated from the first line if you don’t specify one.

View snippets

Click on a shared snippet to open it and view the full content. The content is displayed with proper formatting based on the file type.

Download snippets

Each snippet can be downloaded as a file (e.g. my-snippet.js). Click the download button to save it to your computer.

Auto-detection

When you paste multi-line content into the chat input, Workly offers to create a snippet automatically. This keeps the chat clean while preserving the full text as a downloadable file.

Frequently asked questions

What is a text snippet in Workly?

A text snippet is a formatted text file you can share in chat. It has a title, file type, and content. Snippets are ideal for sharing code, configurations, or long text without cluttering the conversation.

What file types can I use for snippets?

Workly supports many file types including txt, js, py, html, css, json, and more. The file type determines how the content is formatted when viewed.