How to create a code editor for my plugin .?

How to create a code editor for my plugin .?