Conveniently, the solution is the editor that thousands of developers have taken time to improve over decades so that the author didn't have to start from scratch.
What are the odds that the solution involved a popular, mature tool that the developer could leverage?
What are the odds that the solution involved a popular, mature tool that the developer could leverage?