0 Replies Latest reply: May 6, 2009 1:13 AM by David_Powers RSS

    Posting code in this forum

    David_Powers CommunityMVP

      When posting code in this forum, do NOT use "Insert Raw HTML". Use Syntax Highlighting > Plain instead, as shown here:

       

      syntax_highlighting.png

      You can also paste code directly into your post. However, using Syntax Highlighting > Plain has the advantage of preserving code formatting like this:

       

      <h1>User Login</h1>
      <form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
        <p>
          <label for="username">Username:</label>
          <input type="text" name="username" id="username" />
        </p>
        <p>
          <label for="pwd">Password:</label>
      <input type="password" name="pwd" id="pwd" />
        </p>
        <p>
      <input type="submit" name="doLogin" id="doLogin" value="Login" />
        </p>
      </form>
      

       

      If you use "Insert Raw HTML", the forum interprets the tags as HTML, in effect hiding your code. This is the same code entered using "Insert Raw HTML":

       

      User Login