About Add Prefix / Suffix
Add Prefix / Suffix wraps each line with text of your choosing — a string at the start, a string at the end, or both. The two fields are independent; leave either one empty to add only the other side. The line count is preserved exactly: each input line becomes one transformed output line.
This is the general-purpose per-line wrapper for the cases where the optimised tools in this cluster do not fit. Need each line wrapped in `<li>...</li>`? Set prefix `<li>`, suffix `</li>`. Building a single-quoted, comma-terminated argument list for code? Prefix `'`, suffix `',`. Turning a list of email addresses into `mailto:` links, prepending an environment prefix to env-var names, or appending a comment marker to disable lines all fit here. For the most common symmetric cases — bullets, quotes, line numbers — use Bulletize, Quote-Wrap, or Number Lines instead; this tool is the catch-all when those do not match the shape you need.
Examples
alice
bob
charlie<li>alice</li>
<li>bob</li>
<li>charlie</li>Prefix `<li>`, suffix `</li>`. Either field can be empty to add only one side.
Frequently asked questions
Can I leave prefix or suffix empty?
Yes. An empty prefix prepends nothing; an empty suffix appends nothing. Setting both to empty is a no-op — the output equals the input.
How does this differ from Bulletize and Quote-Wrap?
Bulletize is hard-coded to a markdown bullet character. Quote-Wrap uses the same character on both sides. Add Prefix / Suffix lets the two strings differ in length and content. Use the optimised tool when it fits; this one when neither does.
Will it touch blank lines?
Yes. A blank line becomes the prefix concatenated with the suffix. Run Remove Blank Lines first if you want blanks gone before wrapping.
Are there any escaping rules?
No. Prefix and suffix are inserted literally — what you type is what is added. If you need newlines or tabs in the wrapper, paste them in directly.
