shinve — 2012-02-04T21:23:53-05:00 — #1
I use tabs for indentation and code clarity. But with the heredoc syntax, you cannot indent the closing identifier. I like using heredoc, especially for email contents, but it makes my code look ugly because it is always at the left-aligned even when nested within if statements and so on. Does anyone have any suggestions for using heredoc (or perhaps an alternative I don't know about) and retaining good-looking code?
abdussamad — 2012-02-05T00:18:06-05:00 — #2
Use an external template file for this sort of thing.
Also you can indent almost all the code. Only the closing identifier has to be left aligned.