1 Reply Latest reply: Jun 10, 2009 7:27 AM by Roy Reed RSS

    Code formatting procedures

    enigmabot Community Member

      Hi,

       

      I'm writing some HTML code that includes multiple elements nested together, such as:

       

      <html><head></head><body>

      <b>

      <i>

      <p>The 2009 Spring Schedule</p>

      <table>
      <tr>
           <td>

                Cell 1

           </td>

      <td>

                Cell 2

           </td>

      ...

      </table>

      </body>
      </html>

       

      Of course, these lines are not correctly formatted. I know if I press Enter that the auto-indent function will activate with the appropriate menu settings, but how can I format and indent code "on demand"? Thanks in advance for your assistance.

        • 1. Re: Code formatting procedures
          Roy Reed Community Member

          Probably the easiest way to give the code your preferred indenting is to set up a customised CodeSweeper using either the built in version or HTML Tidy. I think there's a supplied Tidy setting called Macromedia HTML Tidy Settings that would give you a good starting point.