Charlie Reams wrote:The easy solution to Matt's problem would be to write the post in some other editor, like Notepad.
Sorry if last post sounded a bit nonsense - had come to this solution myself Charlie and was trying it out... BUT
It only seems to keep proper track of the tab indents at the start of each line.
That's why the PHP code above looks fine, the only tab indents are at the start of the lines in the middle of the function.
But when I set up a perfectly aligned 'table' with tabs in the same PHP editor I was using (with fixed width font), the code comes out like this:
Code: Select all
WEEK: 1 2 3 4 5
Fav. word ALL LEG BOAST FACE CREAM
Fav. number 67 20 0 89.99 four
And when I pasted from this editor into Notepad, it turned out misaligned in there.
I hadn't give up, and tried making sure it was aligned perfectly in Notepad and then trying to copy it over here again. This gave:
Code: Select all
WEEK: 1 2 3 4 5
Fav. word ALL LEG BOAST FACE CREAM
Fav. number 67 20 0 89.99 four
So, not much help. Sorry. Looks like counting the individual spaces is oddly enough the best way?