Code line breaks
Posted: Mon May 03, 2010 9:40 am
When I output a list in php I always get the following format....
<li class="arrow"><a href="#210502">Adidas Sports Performance</a></li><li class="arrow"><a href="#200092">Aedes De Venustas</a></li><li class="arrow"><a href="#210111">African Paradise</a></li><li class="arrow"><a href="#210236">Agata & Valentina</a></li>
With all the code on one line. How can I force it to display like this in the code instead....
<li class="arrow"><a href="#210502">Adidas Sports Performance</a></li>
<li class="arrow"><a href="#200092">Aedes De Venustas</a></li>
<li class="arrow"><a href="#210111">African Paradise</a></li>
<li class="arrow"><a href="#210236">Agata & Valentina</a></li>
Is there something I can find and replace in the code after input to force a line break. A line break in the code only, obviously it will show on separate lines when viewed on the web.
<li class="arrow"><a href="#210502">Adidas Sports Performance</a></li><li class="arrow"><a href="#200092">Aedes De Venustas</a></li><li class="arrow"><a href="#210111">African Paradise</a></li><li class="arrow"><a href="#210236">Agata & Valentina</a></li>
With all the code on one line. How can I force it to display like this in the code instead....
<li class="arrow"><a href="#210502">Adidas Sports Performance</a></li>
<li class="arrow"><a href="#200092">Aedes De Venustas</a></li>
<li class="arrow"><a href="#210111">African Paradise</a></li>
<li class="arrow"><a href="#210236">Agata & Valentina</a></li>
Is there something I can find and replace in the code after input to force a line break. A line break in the code only, obviously it will show on separate lines when viewed on the web.