Loading ...
Sorry, an error occurred while loading the content.

2433php comment formatting

Expand Messages
  • Tom Hundt
    Oct 1, 2009
    • 0 Attachment
      When I write code in PHP, the comments (using the built-in formatter) come out like this (with an extra space before the '*' on each of the continuation lines)

      <?php
      /**
        * this is my function
        * it is good.
        */
      function foo($x) {
        blah;
      }
      ?>

      Contrast with a C file, where the comments line up correctly.

      /**
       * my function
       */
      int foo() {
          blah;
      }

      How do I fix this?  

      I think I've asked this once before, and the answer was something like "wait until we rebuild the code indentation library"... ;-)   Did that ever happen? 

      Thanks

      -Th


      --
      Thomas Hundt <tom@...> +1-415-867-6698