ID:          8685
 Comment by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
 Status:      Open
 Bug Type:    Feature/Change Request
 PHP Version: 4.3.0
 New Comment:

I like the example by [EMAIL PROTECTED] with bash. This is
an important issue for readability, which should be important to any
developer (IMHO). Since it is implemented in open-source bash, could
the bash parser handling of it offer any hints or solutions as to how
to integrate it into PHP? Or are they so dissimilar that it would be
useless? I am not a bash internals hacker (nor PHP) so maybe I'm
barking up the wrong tree. In any case, indentable closing tags would
be an OUTSTANDING feature tho. Hope it hasn't been forgotten in 2003...


Previous Comments:
------------------------------------------------------------------------

[2002-07-10 02:11:27] [EMAIL PROTECTED]

I had a look at implementing this yesterday, but it was harder than it
seemed in the first place.
It can also be that my lexx knowlegde is a bit rusty :)

Derick

------------------------------------------------------------------------

[2002-07-09 17:49:29] [EMAIL PROTECTED]

This has bugged me as well. I used here-docs a lot in Unix scripting
and, of course, continue to in PHP. I actually take pride and spend
time beautifying my code (ahhh) and it is a bit annoying to a line
completely out of place. I support the change.

------------------------------------------------------------------------

[2002-07-09 02:03:19] [EMAIL PROTECTED]

This is a valid feature request and is not bogus.  If this is
impossible to implement that's one thing (close this if it is) but
obviously many share feelings towards this request.     Bogus->Open

------------------------------------------------------------------------

[2002-03-25 21:26:34] [EMAIL PROTECTED]

I agree with h.radi, philip and phanto: the end tag should not have to
start at the beginning of a line. As a counterexample, consider bash.

In fact, I'd like to ask for something similar to bash's `<<-' (i.e., a
here doc with leading tabs removed, both from the text _and_ the end
tag. See man bash). This way, one can have both the source and the html
looking clean and indented.

------------------------------------------------------------------------

[2002-01-30 05:35:24] [EMAIL PROTECTED]

therfore i wrote 'on its own line'. i suppose heredoc is handled by the
scanner, so this should not be a problem.

yohgaki: you were talking about reasons and mentioned only one that
isn't a reason for me. any other reasons ?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/8685

-- 
Edit this bug report at http://bugs.php.net/?id=8685&edit=1

Reply via email to