# Text Editor Code?

**URL:** <https://forum.kirupa.com/t/text-editor-code/230437>\
**Category:** flash\
**Created:** [June 26, 2007, 9:12am UTC](https://forum.kirupa.com/t/text-editor-code/230437 "2007-06-26T09:12:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezamp](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@dezamp](https://forum.kirupa.com/u/dezamp)\
**Post date:** [June 26, 2007, 9:12am UTC](https://forum.kirupa.com/t/text-editor-code/230437/1 "2007-06-26T09:12:36Z")

</div>

I would like to know how to produce some code that would encapsulate a selection with tags. E.g. If i wanted bold text i would press a button and it would have \<b\>whatever\_text\</b\>.

I know there are quite a few text editors out there but i would prefer not to use them. I would rather use a tutorial or a basis of code to start from.
