Jump to content
Dr Pepper Can

How to format text in a Textarea?

Recommended Posts

Hello Dr.Pepper Can, 

You can define a class in your css stylesheet, and then apply that class to the textarea elements where you want to control the formatting in that particular way.


.myformat { 

<textarea class="myformat">Generated content</textarea>


Adrian Gates

Sr.Web Developer

Edited by Ingolme

Share this post

Link to post
Share on other sites

The OP doesn't mean font size, colour etc, he mean a LIST individual lines, that is copied to clipboard and when pasted to email remains as list of individual line, and not a big block of text.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now