Add Prefix to Lines worked example
{
"source": "alpha\nbeta\ngamma",
"value": "- "
}
{
"result": "- alpha\n- beta\n- gamma",
"change_count": 3,
"line_count": 3
}
Text Tools
Add the same prefix to each selected line.
Published Last reviewed
Add the same prefix to each selected line. Enter lines, prefix in a purpose-built line prefix interface designed for this subject. Each line receives the entered prefix, including or excluding blank lines according to the selected behavior. The result includes result, changes, lines, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.
Workspace
Edit the source fields below and inspect the rendered output alongside your work.
This workspace updates as you edit.
Enter the values above, then transform to see a detailed result.
Each line receives the entered prefix, including or excluding blank lines according to the selected behavior.
Each line receives the entered prefix, including or excluding blank lines according to the selected behavior. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.
{
"source": "alpha\nbeta\ngamma",
"value": "- "
}
{
"result": "- alpha\n- beta\n- gamma",
"change_count": 3,
"line_count": 3
}
This tool does not store your inputs or results on UtilityPages.org.
Each line receives the entered prefix, including or excluding blank lines according to the selected behavior.
Enter lines, prefix. Use values and units from the same scenario so the result is internally consistent.
It reports result, changes, lines, including intermediate context where it helps you review the answer.
Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.