|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
||||
|
||||
|
PHP code has that annoying little space in front of it
When you post something in PHP code, it has this annoying little space on this first line:
PHP Code:
And for some reason it bothers me. As ax very aptly put it, this is a Code:
very priority
low
problem, but if it can be fixed, that would be sweet.
__________________
A work in progress: Card Game Platform (Status: Hard Drive Crash deleted project, rewrite planned) | Joke Thread “Rational thinkers deplore the excesses of democracy; it abuses the individual and elevates the mob. The death of Socrates was its finest fruit.” |
|
#2
|
||||
|
||||
|
You know it has bothered me too, then I realized that I had a pair and didn't really care. Suck up weenie.
Chad
__________________
Get A Supplier LLC | Hilarious Comic --- Pretty much retired from the forum. I will get back on every now and then, and maybe answer a few questions. |
|
#3
|
||||
|
||||
|
PHP Code:
PHP Code:
Wierd...
__________________
|
|
#4
|
||||
|
||||
|
looking at the source of the page, it looks like the <?php is assumed to be the first thing in the code, and therefore gets its own span tag with a space followed by it...thing is when there is no <?php it still gets its own span with a space, leaving just a space
anyways seems like the highlight tags doesn't suffer from it, so just use that, its better PHP Code:
PHP Code:
maybe you can just replace php tags with highlight=php tags, it looks better, doesn't have the bugs listed above, has links to the functions, and IMHO is just better
__________________
Feed ME |
|
#5
|
||||
|
||||
|
Testing PHP Code Tags
PHP Code:
PHP Code:
PHP Code:
|
|
#6
|
||||
|
||||
|
PHP Spacing issue is fixed now.
|
|
#7
|
||||
|
||||
|
You guys rule!
|
|
#8
|
||||
|
||||
|
while your at it might want to fix this part too
PHP Code:
looks like it still happens if the first thing is a variable |
|
#9
|
||||
|
||||
|
Quote:
@highlight: Yeah, but to me the PHP tags work really well for PHP because it's just more... well, I'm more used to it. @chad: Then I'd have five, and that wouldn't be cool. |
![]() |
| Viewing: Dev Shed Forums > Forum Information > Suggestions & Feedback > PHP code has that annoying little space in front of it |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |