Line Prefix & Suffix Tool
Add or remove literal text at the beginning and end of every line.
Loading Line Prefix & Suffix Tool...
How to use
Enter one literal prefix, suffix, or both. Add mode wraps each selected line; remove mode only removes text when it occurs at the corresponding edge.
Example
Input
alpha
beta
Output
- alpha;
- beta;
Limitations
Matching is literal and case-sensitive. Remove mode leaves a missing edge unchanged and does not search inside a line.
Frequently Asked Questions
Does it treat symbols as regular expressions?
No. Prefixes and suffixes are always literal, so characters such as * and [ need no escaping.
Can blank lines stay blank?
Yes. Blank lines are unchanged by default; enable Apply to blank lines to wrap them too.