Jump to content
Robert Moskowitz

Italics within a textarea

Recommended Posts

I want to italicize on word in a textarea.  Something like:

<style>
  .copy-area {
    margin-bottom: 2em;
  }
  .copy-area textarea {
  	border:1px solid black;
    resize:none;
    font-size:inherit;
    padding-top:1em;
	margin-left:3em;
    width:20em;
    height:2em;
    overflow-y:hidden;
    overflow-x:auto;
	font-family: verdana,tahoma,'Bitstream Vera Sans','DejaVu Sans',arial,helvetica,sans-serif;
  }
</style>

<div class="copy-area">
<textarea id="box44"
	style="width:25em;height:2em;">
http://<i>fqdn</i>/roundcubemail/installer
</textarea>
</div>

The italics tag worked fine in the old way I did things, but not surprisingly it does not work in my proper CSS style.

So how do I change just a part of my text's font to italics?

And, yes, this is the 44th textarea in this one howto and still more to convert.

 

Share this post


Link to post
Share on other sites

I think you will find it can only done as you already trìed or using similar  formatting code as bbcode, which used here when posting topics [ i ]italics[/ i ] [ b ]Bold[/ b ] (without spaces)

Share this post


Link to post
Share on other sites

The square brackets, fqdn does not work in the textarea.

It would be nice, but I think the key here is that the is a textarea tag and all text is treated, well as text!

Possibly some javascripting could stuff some replacement content into the textarea.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...