Forum Moderators: open
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.
CSS
.myformat {
font-family:Verdana,Arial,Helvetica,san-serif;
font-size:14px;
color:#fff;
background-color:#000;
}
<textarea class="myformat">Generated content</textarea>
This example works in IE6, but not in FireFox or Opera.
<html>
<head>
<style type="text/css">
textarea.special {
font-family:arial;
font-size:14px;
}
textarea.special:first-line {
font-weight: bold;
}
</style>
</head>
<body><textarea class="special" rows="3" cols="50">
Welcome to blablabla,
You may find the following info at this location
</textarea>
</body>
</html>