Trouble With Indenting the Code
I don't really understand , I indented the code and anyway it's showing warning on compiler.
PHP Code:
Can someone explain wtf is happening? Maybe something wrong with notepad , with spaces , encoding ... Really don't understand... P.S. 2. If someone wants to ask why i didn't read tutorials then I'll say that i found only one simple tutorial . Maybe there are others which obviously exist but there's something wrong with searching engine and i haven't found anything. |
Re: Trouble With Indenting the Code
It gives no error to me.
|
Re: Trouble With Indenting the Code
Quote:
Quote:
|
Re: Trouble With Indenting the Code
Copy and Paste between forums and text editors like to fuck up with the spacing. (replacing TAB with spaces, for example)
Check the line that's causing problems, it will give a warning if it's indented with spaces, rather than tabs. |
Re: Trouble With Indenting the Code
Then attach your code as the forum converts tabs to spaces when you paste it in.
|
Re: Trouble With Indenting the Code
If your code "looks" like it's indented and it still gives warnings then you are mixing tabs and spaces. For indentation, you should use one or the other, not both.
Use Notepad++ and you can turn on non-printable characters and you'll see where there are spaces (dots) and where there are tabs (arrows). |
| All times are GMT -4. The time now is 18:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.