Automatic NewLine when using echo?
am 21.01.2008 20:56:22 von martin
Is there a setting somewhere that can be set to force an echo
statement to automatically issue a new line when outputting html
statements?
In order to make it easier to read and debug, I'm adding "\n" to the
end of such statements so that I can "view source" in a browser.
Obviously, when the development of the page is done, I don't really
care about such a view but during development it would make things
easier to de-bug.
Re: Automatic NewLine when using echo?
am 21.01.2008 21:20:02 von Jerry Stuckle
Martin wrote:
> Is there a setting somewhere that can be set to force an echo
> statement to automatically issue a new line when outputting html
> statements?
>
> In order to make it easier to read and debug, I'm adding "\n" to the
> end of such statements so that I can "view source" in a browser.
> Obviously, when the development of the page is done, I don't really
> care about such a view but during development it would make things
> easier to de-bug.
>
>
>
>
No, Just add a "\n" at the end of the echo().
Plus I don't always want a newline at the end of an echo!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: Automatic NewLine when using echo?
am 21.01.2008 22:24:22 von god.lightgod
On jan. 21, 20:56, Martin wrote:
> Is there a setting somewhere that can be set to force an echo
> statement to automatically issue a new line when outputting html
> statements?
>
> In order to make it easier to read and debug, I'm adding "\n" to the
> end of such statements so that I can "view source" in a browser.
> Obviously, when the development of the page is done, I don't really
> care about such a view but during development it would make things
> easier to de-bug.
I think...
1
2 function echon($text) {
3 echo $text."\n";
4 }
5
6 echon("lol");
7 echon("^_^");
This is very-very dusty, and stupid...
But would interest me.