Results 1 to 2 of 2
Feb 4, 2012, 19:23 #1
- Join Date
- Nov 2011
- 0 Post(s)
- 0 Thread(s)
heredox syntax and tabbing code not compatible
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?
Feb 4, 2012, 22:18 #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.