View Categories

Sharing code snippets in chat

3 min read

Sharing code in chat can be messy without proper formatting. Workly lets you create code snippets — formatted code blocks with a title and file type — so your code stays readable in conversations.

Create a code snippet

  1. In the chat input, click the snippet option
  2. Enter a title for the snippet
  3. Select the file type (txt, js, py, html, css, json, etc.)
  4. Paste or type your code
  5. Click Create

The snippet appears as a formatted file attachment in the chat, making it easy for others to read and download.

View and download snippets

Click on a shared snippet to view its full content. You can also download it as a file to your computer.

Auto-detection

When you paste multi-line content in the chat, Workly may offer to create a snippet automatically, keeping the conversation clean and the code properly formatted.

Frequently asked questions

How do I share code in Workly chat?

Click the snippet option in the chat input, enter a title, select the file type, paste your code, and click Create. The snippet appears as a formatted code block.

Can I download code snippets?

Yes, click on any shared snippet to view it, then download it as a file to your computer.