Hello all, I searched these forums for an answer and found something but it didn't help. Is there a way to make it so that when I do a return in Dreamweavers edtior, it keeps the same tabbed indentation from the line previous to it?
theCodeMonsters wrote:
Hello all, I searched these forums for an answer and found something but it didn't help. Is there a way to make it so that when I do a return in Dreamweavers edtior, it keeps the same tabbed indentation from the line previous to it?
It always does exactly what you want by default. What version of DW are you using? I have just checked in DW6 and it works in it.
Have you tried opening a new document from scratch and then trying it out?
Hi,
I tried this approach (something similar to Nancy O. 's proposal):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>text-indent</title>
</head>
<body>
<p style="text-indent:1em;">This text has a text indentation of 1em. Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. This text has a text indentation of 1em. Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. This text has a text indentation of 1em.Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. This text has a text indentation of 1em. Dieser Textabsatz hat eine Texteinrückung von 1em.</p>
<p style="text-indent:1em;">This text has a text indentation of 1em. This text has a text indentation of 1em. Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. This text has a text indentation of 1em. Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. This text has a text indentation of 1em.Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. This text has a text indentation of 1em. Dieser Textabsatz hat eine Texteinrückung von 1em. This text has a text indentation of 1em. </p>
<p style="text-indent:2em">This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em. This text has a text indentation of 1em. This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em. This text has a text indentation of 1em. This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em. This text has a text indentation of 1em. This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em.</p>
<p style="text-indent:2em">This text has a text indentation of 1em. This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em. This text has a text indentation of 1em. This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em. This text has a text indentation of 1em. This text has a text indentation of 2em. Dieser Textabsatz hat eine Texteinrückung von 2em. This text has a text indentation of 1em.</p>
<p style="text-indent:-2em;margin-left:2em">This text has a negative text indentation of -2em. Dieser Textabsatz hat eine negative Texteinrückung von -2em. This text has a negative text indentation of -2em. This text has a negative text indentation of -2em. Dieser Textabsatz hat eine negative Texteinrückung von -2em. This text has a negative text indentation of -2em.This text has a negative text indentation of -2em. Dieser Textabsatz hat eine negative Texteinrückung von -2em. This text has a negative text indentation of -2em.</p>
<p style="text-indent:-2em;margin-left:2em">This text has a negative text indentation of -2em. Dieser Textabsatz hat eine negative Texteinrückung von -2em. This text has a negative text indentation of -2em.This text has a negative text indentation of -2em. Dieser Textabsatz hat eine negative Texteinrückung von -2em. This text has a negative text indentation of -2em.</p>
</body>
</html>
To change or insert new paragraphs you only need to click into it in design view.
Hans-Günter
As I understand it, the OP is writing the code in code view and by pressing ENTER key he wants to go to the next line but exactly below the line before it. Now this, on my machine, is automatic.
Either the OPs configuration is messed up or the installation has being corrupted. However, the question is not about auto format or styling. The OP needs to post back to confirm.
End of story. I am currently watching "African Cup of Nations" and that is more important to me at the present point in time.
Hi,
please have a look here (it's made with my code from above):
AND, at every place of this text you can use ENTER or as I said above too: "To change or insert new paragraphs you only need to click into it in design view." What I didn't say you can use code view so too! You will get this: "<br>".
Hans-Günter
North America
Europe, Middle East and Africa
Asia Pacific