2 Replies Latest reply on May 11, 2006 8:23 AM by delaneypub

    auto code completion - where?

      firstly - sorry if this already exists somewhere - i searched but couldn't find anything -

      i keep reading everyone go on about DW code completion and how great it is - but can't find how to edit my own code completion tags like i could in HTML-Kit. can someone push me in the right direction? - eg

      in html-kit i could write
      <table

      and it would write
      <table cellspacing='0' cellpadding='0' border = '0' summary='<%=summary%>'>
      <tr>
      <td></td>
      </tr>
      </table>

      or <img would write <img src="images/" alt='<%=alt%>' border='0'>

      i even got lazy and started making tags like :-

      write : would return response.write("")

      and

      codeupdate

      would write :-

      Set RsUpdate = Server.CreateObject("ADODB.Recordset")
      strSQL = "Select * FROM tbl where id = " & id
      RsUpdate.Open strSQL, conn, 3,3,1


      anyway - you get the idea.
        • 1. Re: auto code completion - where?
          Level 7
          paulthemann wrote:
          > firstly - sorry if this already exists somewhere - i searched but couldn't find
          > anything -
          >
          > i keep reading everyone go on about DW code completion and how great it is -
          > but can't find how to edit my own code completion tags like i could in
          > HTML-Kit. can someone push me in the right direction? - eg

          Unfortunately, the code completion (Code Hints) within DW doesn't allow for the type of customization that you're talking about.

          You could take a look at snippets though, they may get you closer to having custom blocks of code inserted into your page. You can even apply keyboard shortcuts to them to make them a couple of key operation. Eidt -> Keyboard Short Cuts (make a copy of an existing set if you haven't already) change Commands to Snippets and away you go.


          --
          Danilo Celic
          | Extending Knowledge Daily : http://CommunityMX.com/
          | Adobe Community Expert
          • 2. Re: auto code completion - where?
            delaneypub Level 1
            If you want to leverage DW to help you write code, your could use it's commands to do the tasks you mention.

            To insert a basic table, choose Insert Table (Insert menu) or click the table icon on the Insert bar, and choose rows, columns, etc. from the dialog box. DW will remember the dialog options you pick, so you can either cutomize each table insert or take the saved options.

            You can do something similar for images with the Insert Image menu item or icon onn the Insert bar.

            The code example you show for a record set can be done as easily from the Bindings tab of the Application panel.