[solved] Is Multiline Auto-Replace Possible?

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
superasn
Posts: 4
Joined: Tue Nov 02, 2010 8:22 pm

[solved] Is Multiline Auto-Replace Possible?

Post by superasn »

Hi,

I'm using version 10.2 (10.2.0.121) of RapidPHP and I was wondering if there is a support for multi-line auto-replace. Also, is there a provision for where to put the cursor after replacement? I'm currently using EditPlus and I have setup my autocomplete file like this:

Code: Select all

#T=redir
header("Cache-Control: no-cache");
header("Expires: -1");
header("Location: ^!");
exit;
#T=other
this basically replaces the "redir" word with 4 lines of text and then places the cursor at "^!", i.e. after "Location:" (it somehow maintains the indentation too!)

I am trying to migrate my current file for use into RapidPHP but am unable to so far. Other than that, I am really loving this new program. I am impressed on how fast it is, but I really need to get this Autoreplace to work as it saves me so much time.. so any help will be appreciated :)

Many Thanks,
San
Last edited by superasn on Mon Nov 08, 2010 8:30 pm, edited 1 time in total.
superasn
Posts: 4
Joined: Tue Nov 02, 2010 8:22 pm

Re: Is Multiline Auto-Replace Possible?

Post by superasn »

hi,

just following up.. had this thought.. maybe it is not possible to enter a multi-line autoreplace from the UI because it is a textfield (not textarea).. so maybe if thee is a registry setting or a .ini file which contains this setting, i can directly edit that?

just wondering..

thanks,
san
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Is Multiline Auto-Replace Possible?

Post by Gatis »

Hi,

Why don't you use the Snippets for this? Go To Main Menu; View; Library. There you can define your own Snippets, assign also a Callword, and then by pressing CTRL+J inside the code area, you will get a list of snippets which have a Callword.
By choosing one of these snippets from the pop-up box, the snippet will be placed inside your code.
Kind regards,
Gatis Avots
User avatar
mapleleaf
Posts: 121
Joined: Thu Oct 14, 2010 2:21 am
Location: Ashcroft, BC Canada
Contact:

Re: Is Multiline Auto-Replace Possible?

Post by mapleleaf »

Gatis

this is what I am exactly doing as WebBuilder doesn't have the macro ability and it works simply great not perfect but great.


mapleleaf
www.mirana.net
superasn
Posts: 4
Joined: Tue Nov 02, 2010 8:22 pm

Re: Is Multiline Auto-Replace Possible?

Post by superasn »

that worked perfectly!

thanks for the replies and help..

regards,
san
Post Reply