title: Use PHP to format an input SQL query as HTML?
body: <p>What I am looking for is a php function that takes an unformatted query like this:</p>
  
  <blockquote>
    <p>$sql = "select name, size from things where color = 'green' order by price asc";</p>
  </blockquote>
  
  <p>so that it would appear in an HTML page something like this:</p>
  
  <pre>
  SELECT
      name, size
  FROM
      things
  WHERE
      color = 'green'
  ORDER BY
      price ASC';
  </pre>
  
  <p>There's some code inside phpMyAdmin that does this already, I could look in there I guess!</p>