Share your use case and provide as many details to support your idea as possible:
Embed Page Editor for CMS/ commenting /HTML,CSS, developer.
This will allow text formatting to be easy such as Bold, italic, paragraph, text-alignment, font-size, font family etc…, to be easy while typing. No need of using code for bold.
Just like MS. Word in a textarea.
The result will come out as html code that can be used as output (behind the scene) for storing into sql, text file, and displayable in the website.
Thank you.