Rapid PHP Question

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
Jak-S
Posts: 7
Joined: Sat May 06, 2006 1:07 am

Rapid PHP Question

Post by Jak-S »

Hi,
I have now purchased Rapid PHP (didn’t need ASP or SSI support so didn’t need WeBuilder).

One quick question, how do I force it to always use tabs? At the moment you can click like two characters into the line (the tab size is set to 4) and it will allow you to add some text in half way through a tab, makes no sense. Also when you highlight text for some reason it lets you highlight what’s looks like individual spaces at the beginning of the line, even though there are only tab characters there.

Basically I want it to always put the cursor and the beginning or end of the nearest tab (depending on where you click/drag).

BTW. I have “Convert tabs to spaces” turned off, so is this a bug?

Thanks,
Jack
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

I don't believe the application will 'convert' spaces to tabs, only the other way around. This is why it leaves existing spaces alone, and you can click anywhere in the line to start editing.
Jak-S
Posts: 7
Joined: Sat May 06, 2006 1:07 am

Post by Jak-S »

Well, that’s just what the option is called "Convert tabs to spaces". I agree that if there were spaces you should be able to click anywhere in them, but that’s not what’s happening.

If i start in a completely blank document (no spaces or tabs or anything) and hit the tab key, i get a tab character (equivalent to four space characters in size), and if i was to hit the left arrow key once, the cursor will move back to the beginning of the line. However, if i click somewhere in the space that should be taken up entirely by one tab character, it inserts the text cursor wherever I clicked (rather than placing it at the end of the tab), and will allow me to type something in from that point, therefore, allowing me to type halfway into a tab character.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Yes, see what you mean now.
Jak-S
Posts: 7
Joined: Sat May 06, 2006 1:07 am

Post by Jak-S »

Hey, does anyone have any idea about this?
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

Hi,
I would like the option to force tabs, or at least options on Save to either convert each N spaces to a tab or simply strip all leading spaces.

I like indented code when I'm programming, but having spaces padding all the lines makes the files that much bigger and slower to run.

- possibly have separate 'space strip' options for save to file & save to FTP? That would keep both the editability and optimise speed at the server.
Robert Jenkins
Jak-S
Posts: 7
Joined: Sat May 06, 2006 1:07 am

Post by Jak-S »

Yeah, although i don’t think there should be a need to convert N spaces to tabs or anything, i think there is just a bug in Rapid PHP.

When you uncheck the "Convert tabs to spaces" option and then hit the tab key in the editor it should put in a tab character (which it dose) but then after that the tab character should act just like a tab in any other program, i.e. it is one character, it cant be split in half, and if you click half way through it the cursor should go to the end of it.

The problem i mentioned must be a bug, i hope they fix it in the next update.
Post Reply