"ma*************@gmail.com" <ma*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
the question is simple... is there any way to indent HTML code inside a
simple textarea?...
tnx!
martin
You can use Tabs or spaces with a fixed width font.
<html>
<head>
<title>ta_tab.htm</title>
</head>
<body>
<form name="form1">
<textarea name="text" cols="80" rows="10"></textarea>
<textarea name="area" cols="80" rows="10"
style="font-family:Courier">Hello World!</textarea>
</form>
<script type="text/javascript">
document.form1.text.value = "Hello\tWorld!";
</script>
</body>
</html>