Hello all:
For some reason whenever I write in php, the foldings do not show up for the line numbers in the gutter.
Is there another setting I need to set to make this happen? When I open someone elses work the foldings are there so, I am not sure what I am doing to not make them show.
thanks for your help,
Paul
On 21 Oct 2007, at 15:14, pmsquillace wrote:
For some reason whenever I write in php, the foldings do not show up for the line numbers in the gutter.
Can you give an example of some code which you would expect to fold that doesn’t? E.g. does the following snippet show folding markers:
<?php if (condition) { } ?>
For some reason whenever I write in php, the foldings do not show up for the line numbers in the gutter.
Can you give an example of some code which you would expect to fold that doesn’t? E.g. does the following snippet show folding markers:
<?php if (condition) { } ?>
Hi thanks for the reply...
Yes, I was doing a simple echo example embedded in some HTML.
Here is what I got,
<html> <head> <title>Hello World</tile> </head> <body> This page is my first Hello World php Script.<br><br> <?php
echo "Hello World! This is PHP <br><br>" ; print "Hello World! This is PHP again with the function print <br><br>" ; echo "Hello" . " World! This is PHP concatenated together with a . <br><br>" ; echo 2+3; ?> <br><br> <?php
echo "Johnny will come marching home, today" ; ?> </body> </html>
AFAIK (after checking my own code), the actual php tags (<?php ... ?
) don't fold in Textmate.
The only other part here that doesn't fold for me, which should, is the head and title, and that's because the close </title> tag is misspelt.
On Oct 21, 2007, at 3:13 PM, pmsquillace wrote:
<html> <head> <title>Hello World</tile> </head> <body> This page is my first Hello World php Script.<br><br> <?php
echo "Hello World! This is PHP <br><br>" ; print "Hello World! This is PHP again with the function print
<br><br>" ; echo "Hello" . " World! This is PHP concatenated together with a . <br><br>" ; echo 2+3; ?> <br><br>
<?php echo "Johnny will come marching home, today" ; ?>
</body> </html>
hrmm,
that is odd. Ok well if it only folds HTML then that makes sense.
If anyone has any other thoughts on this or knows otherwise I will take this as it.
thanks for all your help,
Paul
pmsquillace wrote:
Hello all:
For some reason whenever I write in php, the foldings do not show up for the line numbers in the gutter.
Is there another setting I need to set to make this happen? When I open someone elses work the foldings are there so, I am not sure what I am doing to not make them show.
thanks for your help,
Paul
Well, no. It does fold PHP. It's quite smart about folding php. It folds if blocks, switchs, while loops, and function definitions, among other things. It just doesn't fold the <? php ... ?> tags themselves, as far as I can tell.
On Oct 21, 2007, at 7:12 PM, pmsquillace wrote:
hrmm,
that is odd. Ok well if it only folds HTML then that makes sense.
If anyone has any other thoughts on this or knows otherwise I will take this as it.
thanks for all your help,
Paul
pmsquillace wrote:
Hello all:
For some reason whenever I write in php, the foldings do not show up for the line numbers in the gutter.
Is there another setting I need to set to make this happen? When I open someone elses work the foldings are there so, I am not sure what I am doing to not make them show.
thanks for your help,
Paul
-- View this message in context: http://www.nabble.com/Foldings-in-php- tf4666214.html#a13334517 Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Well, I wish I could tell you but I am just starting to learn php and I am only up too printing and echo. LOL
I will let you know if I have a problem when I get up to what you are talking about.
Thanks Ian for your help with this.
Paul
Ian Smith-Dahl wrote:
Well, no. It does fold PHP. It's quite smart about folding php. It folds if blocks, switchs, while loops, and function definitions, among other things. It just doesn't fold the <? php ... ?> tags themselves, as far as I can tell.
On Oct 21, 2007, at 7:12 PM, pmsquillace wrote:
hrmm,
that is odd. Ok well if it only folds HTML then that makes sense.
If anyone has any other thoughts on this or knows otherwise I will take this as it.
thanks for all your help,
Paul
pmsquillace wrote:
Hello all:
For some reason whenever I write in php, the foldings do not show up for the line numbers in the gutter.
Is there another setting I need to set to make this happen? When I open someone elses work the foldings are there so, I am not sure what I am doing to not make them show.
thanks for your help,
Paul
-- View this message in context: http://www.nabble.com/Foldings-in-php- tf4666214.html#a13334517 Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate