# Sandbox.SandboxSystemExtensions.Snippet

```csharp
static string Snippet(string source, string find, int padding)
```

Given a large string, find all occurrences of a substring and return them with padding.
This is useful in situations where you're searching for a word in a hug body of text, and
want to show how it's used without displaying the whole text.

### Parameters

- `source` (`string`)
- `find` (`string`)
- `padding` (`int`)

### Returns

`string`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
