score:4
if you using pdt, create your own php template. from the menu window > preferences, choose php > editor > templates. click new button, then use mres
as the template name, then put
mysql_real_escape_string(${cursor})
as a pattern.
to use it, just type mres and press ctrl+space. if there are no other alternative for the mres
, then your template will be used right away. if you happened to have 2 or more templates that started with mres
or contain mres
in the template name, a popup will be showed so you can choose which you want to use.
score:-2
well, i don't know about the ide but why not type mres and when you're done with the code, you can replace all occurrances with "mysql_real_escape_string".
another way is to create a function like this:
function mres($string)
{
return mysql_real_escape_string($string);
}
Source: stackoverflow.com
Related Query
- Eclipse PHP IDE - custom auto complete tags
- Properties of new tags using composite component are not displayed by Eclipse auto complete shortcurt
- Eclipse IDE Auto complete bug skipping line and moving cursor to middle of the next line
- Eclipse "cannot find the tag library descriptor" for custom tags (not JSTL!)
- How to find complete list of warnings in eclipse IDE
- Setting auto complete shortcuts in Eclipse
- Eclipse Java auto complete changes exact matches to substring matches
- Eclipse auto complete doesn't work with lambda and types
- How to setup eclipse ide for php development with pre-existing source
- How to use xdebug with eclipse IDE for PHP
- Make Custom Project template in Eclipse IDE
- Fuzzy auto complete in Eclipse
- Writing custom IDE on top of Eclipse
- Enable Task Tags in Scala IDE for Eclipse
- Eclipse IDE content assist for custom XMLs
- Eclipse (Juno) hangs on JSF EL Expression Auto Complete
- no JavaScript auto complete in PyDev Eclipse project
- Eclipse PHP autocomplete acting funny, some files complete some don't
- Java class methods do not auto complete in Jython using Eclipse Pydev
- Eclipse Code Hinting on JSP with Custom Tags (taglib)
- IDE development for CodeIgniter PHP framework in ECLIPSE
- In the Eclipse HTML editor, is there an easy way to have custom tags available in content assist (autocomplete)?
- Eclipse support for custom facelets tags
- Arraylist auto complete in eclipse
- Auto Complete activates after 2 characters Eclipse
- Auto complete a statement in eclipse
- Eclipse auto complete not working
- Eclipse PHP IDE annoyance
- When adding an unimplemented method to a class, is there a way to auto import comments in an eclipse IDE for the method?
- Eclipse in adt-bundle for android development freezes by auto complete
More Query from same tag
- Deleted a change set in eclipse, crisis ensues
- How do I import the javax.servlet / jakarta.servlet API in my Eclipse project?
- Eclipse Indigo and SVN
- Android Eclipse Interstitial Ads not showing for an error
- Special characters in Eclipse on an non-US keyboard
- Httpclient deprecated
- Android platform showing black screen
- How to send data to port of gwt web application project when debugging?
- unable to attach java jdk with eclipse
- Eclipse 4.5.1 server timeouts it is not well rendered
- Change scala type specification to java type specification
- Eclipse ADT appcompat... what is it?
- Getting error while creating maven project in pom.xml file getting below error
- Spring MVC + eclipse + STS
- NLS missing while accessing property file in eclipse plugin development
- Javadoc doesn't match code
- Trouble adding a library to an Eclipse Project - UnsatisfiedLinkError
- Making a coinflip game using objects and methods java?
- Why does an ICleanUp run with different options than what was initialized by the ICleanUpOptionsInitializer?
- Dataflow in Eclipse: Cannot run program "gcloud"
- OpenOCD debugging multiple devices at once
- Maven for Eclipse plugin m2ecplise installation
- Repackage update site into one feature
- Refresh + Clean in Eclipse, Equivalent in Intellij?
- Create standalone executable c++ embed Lua dymamic library link? (eclipse,ubuntu)
- How to operate the Perl debugger in Eclipse/EPIC
- How do I load an FXML file from another project using JavaFX in eclipse?
- Missing R.java file even though project cleaned
- Qt Eclipse Integration not working
- Java Stream Generics Type Mismatch