Auto Completion of PHP Commands and Missing TagsReminder & Custom Toolbar

  • Advertisement ( why? )
     

    Fabienne, 15th Aug 2012 9:46 am

    I have three questions about HTML-Kit Tools (ver. 20120801) so far, and here they are:

    1) I am studying php and would like to be reminded about tags. Actually, I would love to know where to look for the automatic tag completion function. I am doing basic things right now and I know that is going to get tedious (like starting php blocks, if functions, and the like). I am sure that there is a way to click and get those functions and repetitive commands, but I cannot figure out how.

    2) It seems that my TagsReminder is turned off, too. How can I turn that back on? I get the tool tip to look at the TagsReminder coming out of the HTML Kit icon in the upper right hand side of the screen BUT I get no TagsReminder which is supposed to pop up after I type < and wait for a second or two.

    I have looked in the preferences area and didn't see anything that looked like it would help, and have also looked in a number of other places.

    3) Is there a way to customize the toolbar for php work? I see plenty of things to help with HTML but not php. I have downloaded the php plugins, and they look useful, but is there a spot where you can change the toolbar to add things like opening and closing tags, etc?

    So far, I really like HTML Tools I liked HTML Kit as well and I want to get the most out of Tools. Thanks.

    • Fabienne, 15th Aug 2012 11:13 am

      And one more question, I am making up a blank php document for practice as a template, but how do I save the position of the cursor? When I save it it either appears before the opening < or somewhere that I don't want it. I have tried putting it exactly where I want it and saving and it does not work, I tried putting a | where it should be and that does not work. There is a trick to it that I am not getting. I want the cursor between the opening and closing tags of php. Thanks.

      • HTML-Kit Support, 15th Aug 2012 4:01 pm

        On 8/15/2012 11:13 AM, Fabienne wrote:

        And one more question, I am making up a blank php document for
        practice as a template, but how do I save the position of the cursor?
        When I save it it either appears before the opening < or somewhere
        that I don't want it. I have tried putting it exactly where I want it
        and saving and it does not work, I tried putting a | where it should
        be and that does not work. There is a trick to it that I am not
        getting. I want the cursor between the opening and closing tags of
        php. Thanks.

        Hi,

        Let me take this question first since there's a quick answer :)

        When you create a new template with "File > New > Add new template," the
        "Move cursor to | character" option does what you're looking for.

        For templates that you've already created and stored in "File > New >
        Edit templates," adding movecursor=1 option will do the same. For example:

         #@begin-text "default" [movecursor=1]
        

        Hope this helps!

        Chami

        • IvoAelberts, 16th Aug 2012 3:43 am

          Hi Fabienne,

          Maybe I can help you with 1,2 and 3 having been in the same position.

          I love HTML-Kit tools, I use it a lot for HTML work, especially for writing articles on my site.

          However, the "hardcore php coding" (database connection, selection of data, posting forms), I use another tool: PHP designer. That tool specialises on PHP and Javascript development so I can debug the code, it has autocompletion, checks the syntax and so on. If you want a freeware tool, you can use Komodo Edit (the edit version is free, normal komodo is expensive).

          But for writing HTML articles, using HTML-Kit tools is a lot faster (and more fun) than using a coding tool.

          And, last but not least, for FTP I use FileZilla (a free tool).

          Kind regards, Ivo.

          • Fabienne, 16th Aug 2012 10:03 am

            Thanks, Ivo. I did get the template edited very nicely. I was wondering about the [movecursor=1] statement as I saw it in the coding for the other templates. Now I understand.

            The problem I was having was when I read that "move cursor to '|' character, due to the font, it looked like it was saying "move cursor to T character"! And I could not figure out what that meant. Ha! Weird problem and thanks for the answer, it was making me very puzzled indeed.

            Thank you for the tip about PHP Designer. I will download a free trial and take it on a spin and explore Komodo Edit.

            • IvoAelberts, 17th Aug 2012 4:01 am

              Your welcome.

              I forgot to mension one more tool I use a lot...

              I use GIMP for the photo editing.

              Kind regards,

              Ivo.

    • HTML-Kit Support, 16th Aug 2012 11:59 am

      On 8/15/2012 9:46 AM, Fabienne wrote:

      I have three questions about HTML-Kit Tools (ver. 20120801) so far,
      and here they are:

      1) I am studying php and would like to be reminded about tags.
      Actually, I would love to know where to look for the automatic tag
      completion function. I am doing basic things right now and I know
      that is going to get tedious (like starting php blocks, if functions,
      and the like). I am sure that there is a way to click and get those
      functions and repetitive commands, but I cannot figure out how.

      2) It seems that my TagsReminder is turned off, too. How can I turn
      that back on? I get the tool tip to look at the TagsReminder coming
      out of the HTML Kit icon in the upper right hand side of the screen
      BUT I get no TagsReminder which is supposed to pop up after I type <
      and wait for a second or two.

      I have looked in the preferences area and didn't see anything that
      looked like it would help, and have also looked in a number of other
      places.

      3) Is there a way to customize the toolbar for php work? I see plenty
      of things to help with HTML but not php. I have downloaded the php
      plugins, and they look useful, but is there a spot where you can
      change the toolbar to add things like opening and closing tags, etc?

      So far, I really like HTML Tools I liked HTML Kit as well and I want
      to get the most out of Tools. Thanks.

      Thank you very much for the kind words about HTML-Kit! Always nice to
      hear that :)

      I'm sorry about the delay in getting back to you. I started replying
      last night and it quickly turned into a long message with many links. So
      I thought I'd take the time to make it into a blog post with screenshots:

      http://www.htmlkit.com/blog/coding-in-php/

      Let me know if I've missed any questions.

      Chami

      • Fabienne, 18th Aug 2012 7:55 am

        Thank you, Chami, that is a very thorough reply. I will have to sit down and digest it as it deserves. Already I can see that I was looking under the wrong area for my PHP plug ins, they appear to be under HTML plug ins and then under HK (for html kit), not p (for php). So I will go hunting there. Thanks again for all that hard work and the hard work you have put into HTML Kit Tools.