Robert Moskowitz Posted June 19, 2019 Share Posted June 19, 2019 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. Link to comment Share on other sites More sharing options...
Robert Moskowitz Posted June 19, 2019 Author Share Posted June 19, 2019 My googling this has not only come up empty, but statements that it <b>Cannot</b> be done. I will work out an alternative approach, but any pointers on this is greatly appreciated! Link to comment Share on other sites More sharing options...
dsonesuk Posted June 19, 2019 Share Posted June 19, 2019 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) Link to comment Share on other sites More sharing options...
Robert Moskowitz Posted June 19, 2019 Author Share Posted June 19, 2019 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. Link to comment Share on other sites More sharing options...
dsonesuk Posted June 19, 2019 Share Posted June 19, 2019 It wouldn't, you require the bbcode software to be installed first. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now