> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsnippets.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Share Snippet Links

> Share snippets publicly via links with audio, video, and syntax highlighting

## Overview

Share Snippet Links that lets you share snippets publicly via a simple URL. Snippets AI supports rich content: code with syntax highlighting, embedded audio and video, and beautiful formatting-all accessible via a single shareable link.

Perfect for sharing code snippets, prompts, tutorials, or multimedia content with anyone, whether they use Snippets AI or not.

## Why Share Links Matter

Traditional snippet sharing is clunky:

* **Copy-Paste**: Formatting breaks, long snippets get messy
* **Screenshots**: Not copyable, no syntax highlighting
* **Email Attachments**: Hard to find later, version control issues
* **Generic Pastebins**: No media support, no syntax options

Share Links solve all of this with one URL.

## How It Works

<iframe src="https://player.vimeo.com/video/1104075214?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

### Creating a Share Link

#### Method 1: From Snippet Menu

1. **Open any snippet** in Snippets AI
2. **Click Share button** (or right-click → Share)

### Sharing the Link

Once created, share the link anywhere:

* **Email**: Open in email client
* **Slack/Discord**: Paste into message
* **Social Media**: Share on Twitter, LinkedIn
* **QR Code**: Generate QR code for easy mobile access (if available)

### What Recipients See

When someone opens your share link:

<iframe src="https://player.vimeo.com/video/1104075167?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

**Beautiful Web View:**

* Clean, readable interface
* Proper syntax highlighting
* Copy button for easy copying
* Download option
* View on dark or light theme

**No Account Required:**

* Recipients don't need Snippets AI account
* No login, no signup
* Just open and view

## Share Links with Media

### Audio Attachments

Share snippets with audio:

1. Create snippet with audio recording
2. Recipients can play audio inline
3. Perfect for voice prompts, instructions, explanations

**Example Use Case:**

```
Share: "Sales Pitch Template"
- Text: Written script
- Audio: You reading the pitch for tone/emphasis
- Recipients hear exactly how to deliver
```

### Video Attachments

Share snippets with video:

1. Attach video to snippet (embed or upload)
2. Generate share link
3. Video plays inline on share page
4. Great for tutorials, demos, walkthroughs

**Example Use Case:**

```
Share: "React Component Tutorial"
- Text: Component code
- Video: Screen recording showing implementation
- Recipients see code + video explanation
```

### Mixed Content

Combine text, audio, and video:

<iframe src="https://player.vimeo.com/video/1104076520?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

```
Share: "Complete Feature Walkthrough"
- Text: Feature description and code
- Audio: Voice notes explaining tricky parts
- Video: Demo of feature in action
```

All viewable in one shareable page.

## Syntax Highlighting Options

When sharing code, choose syntax highlighting:

<iframe src="https://player.vimeo.com/video/1104076592?h=0&title=0&byline=0&portrait=0&autoplay=1&muted=1" width="100%" height="450" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen />

### Automatic Detection

Snippets AI auto-detects syntax from your snippet's format:

```javascript theme={null}
// Shared with JavaScript syntax
const fetchData = async () => {
	const response = await fetch('/api/data');
	return response.json();
};
```

### Manual Override

Change syntax before sharing:

1. Click "Share" → Advanced Options
2. Select "Syntax" dropdown
3. Choose from 50+ languages
4. Generate link with chosen syntax

**Supported Syntaxes:**

* JavaScript, TypeScript, Python, Java, Go, Rust
* SQL, PostgreSQL, MySQL, MongoDB
* HTML, CSS, JSON, YAML, XML
* Markdown, Plain Text
* And many more

### Multiple Language Versions

Share same content with different syntax views:

**Example: API Request**

Share link 1: JavaScript version

```javascript theme={null}
fetch('https://api.example.com/data');
```

Share link 2: Python version

```python theme={null}
requests.get('https://api.example.com/data')
```

Share link 3: cURL version

```bash theme={null}
curl https://api.example.com/data
```

Create separate share links for each syntax.

## Practical Use Cases

### For Developers

**Code Review with External Contractors:**

```
1. Create snippet with code needing review
2. Share link with contractor
```

**Open Source Contributions:**

```
1. Share code snippet publicly
2. Post link on GitHub, Twitter
3. Community reviews
4. Improve code based on feedback
```

### For Technical Writers

**Documentation Snippets:**

```
1. Write code examples for documentation
2. Share links in blog posts, articles
3. Readers copy code with proper syntax highlighting
4. Update snippet; all links reflect changes
```

### For Educators

**Tutorial Resources:**

```
1. Create tutorial with text + video
2. Share link with students
3. Students watch video and copy code
```

### For Sales & Marketing

**Demo Scripts:**

```
1. Create demo script with audio recording
2. Share with sales team via link
3. Reps listen to pitch delivery
4. Consistent messaging across team
```

### For Teams

**Knowledge Sharing:**

```
1. Document solution to problem
2. Share link in Slack channel
3. Team members access without needing Snippets AI
4. Can copy and adapt for their use
```

## Security Considerations

### What's Safe to Share

✅ **Safe:**

* Example code (non-production)
* Tutorials and educational content
* Public documentation
* Marketing copy
* General prompts

❌ **Not Safe:**

* API keys or secrets
* Production credentials
* Personal information
* Company confidential data
* Private customer data

See [API Reference](/api-reference/snippets/create-snippet) for details.

## What's Next

<Card title="Video & Audio Prompts" icon="video" href="/guides/video-audio-prompts">
  Learn how to attach audio and video to snippets before sharing
</Card>

<Card title="Syntax Highlighting" icon="palette" href="/guides/syntax-highlighting">
  Master syntax highlighting for better-looking shared snippets
</Card>

<Card title="Real-time Notifications" icon="bell" href="/guides/realtime-notifications">
  Get notified when someone comments on your shared snippets
</Card>
