Problem with PHP code snippets

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
zuggsoft
Posts: 11
Joined: Sat Nov 08, 2008 7:26 am

Problem with PHP code snippets

Post by zuggsoft »

I was trying to get PHP code snippets to work. I edited the snippet for "if" and added "if" to the "callword". Now, if I type:

function test()
{
if

and then press Ctrl-J, I get this:

function test()
{
if (|)

}

with the cursor positioned after the (|). So notice that it is inserting the | character instead of placing the cursor in that position, and it is not properly handling the indentation of the code snippet. Inserting the code snippet manually using the PHP menu works fine.

Also, I'd like to request a way to change the Ctrl-J key so that I can just use the normal Spacebar to autocomplete my code snippets. That's what I'm used to in my other development environments, so it would be nice to have here. I just hate needing to press Ctrl-J. But fix the bug with Ctrl-J first.

This is with version 9.2.0.100 Rapid PHP 2008.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Problem with PHP code snippets

Post by chrisjlocke »

This may be similar to this issue
http://forums.blumentals.net/viewtopic. ... &sk=t&sd=a

If so, then its on their list.
Post Reply