Fix calc field tooltip HTML

1. Fix example so pre tag displays correctly.
2. Put php examples into pre blocks.
Merge pull request #1125 from Sophist-UK/fix_calc_tooltip_html

Fix calc field tooltip HTML