lhunath 0 Report post Posted October 27, 2004 Ewwww for fuks sake urgh bluergh. Sorry. =) How absolutely ****ed up and lame. Textarea was made for user interactive text. There is a HTML Tag designed for THIS. It's called PRE. <pre></pre> How hard can it be? Why make your page as ugly as hell? Use weird server side scripts, ugly Javascript or ****ed up HTML? W3C designed you a tag that does the trick perfectly. Use it! Share this post Link to post Share on other sites
r3d1405241470 0 Report post Posted October 28, 2004 lhunath behave remember your admin now :)and about that pre it still parse html tags Share this post Link to post Share on other sites
avalon1405241471 0 Report post Posted October 28, 2004 I dun agree with you, textarea it can be very nice too, if you know how to implement style sheet to it. I believe you are not a designer, at least not a commercial designer that earn praises from your customers.I am a very experience designer whom had worked with many companies in various industries doing many types of designs and assisted in various applications development in various languages.Prove me wrong and I will apologize. Share this post Link to post Share on other sites
avalon1405241471 0 Report post Posted October 28, 2004 It's pretty obvious what the user had in mind when he/she ask to display HTML tag code without randering it as HTML result.Using textarea enable the code creator to achieve what he/she is looking for with minimal or no problem from the end user. It can be styled with size, colored, background image with no border and scoll bar. It still enable end users to copy the code, paste and save as it is without needing to make any changes.If you want to know how, just ask kindly and you shall be answered. Share this post Link to post Share on other sites
lhunath 0 Report post Posted October 28, 2004 Actually, you being a very experienced designer, should know that styling a textarea with CSS is a pain in the backside. A huge range of browsers don't properly support decent styling of it, for example border, background, ...By the way, Textarea has the annoyance of a user being able to edit the text, which is not the intention. Unless if you disable it with ugly JavaScript or something.Copying the code is just as easy with any other solution and doesn't require you to be able to edit it. Any why would one want to edit the code? There's no use for it .. just confuses users making them think that there is use, and they just didn't see it.By the way, sorry for my lil outburst there =) I honestly meant it less than half as bad as it sounded. I guess I was annoyed. It was nothing personal.r3d, btw, you're kinda right I'll update the rules for this place soon though, and state that nobody can do things like that again except for me xD no, really, I ought to set an example. Therefore, appologies :)Oh and, I noticed pre, q, code & ... tags do still parse other tags contained in them. Bummer. I was wrong about that then. *sigh* Only way is the lame way then. You disappoint me W3C.And, appologies for that as well I owe them.~lhunath Share this post Link to post Share on other sites
chilipie 0 Report post Posted October 28, 2004 The best way to do it is this:<pre><code>Code snippet (use < and > for < and >).</code></pre>Just for anyone interested - there is an interesting discussion on the usage of < and > at CodingForums.com. Share this post Link to post Share on other sites
lhunath 0 Report post Posted October 28, 2004 // dead link // I love this guy. Share this post Link to post Share on other sites
avalon1405241471 0 Report post Posted October 28, 2004 A huge range of browsers don't properly support decent styling of it, for example border, background, ...I agree with you to a certain extend.There are some styles that all or most browser will support.There are other trick to do it without using javascript or style sheet too but it may not be easy for amatures. Share this post Link to post Share on other sites
pedro1405241472 0 Report post Posted November 3, 2004 f I type: <b>stmpffsdf</b>output = fjlkjllkjlk!= jlkjlkjlkjl Share this post Link to post Share on other sites