#17293
Jason
Participant

Just some clarification, maybe this is an upgrade to the projects tab, but as soon as you type in “(” after writing a function, it will auto-populate the parameters much like a snippet. OR, have wordcomplete fill out parameters for you (example 2).

Example 1:

Syntax: PHP
1.) Type in str_ (word complete kicks in, offers “str_replace” as a suggestion)
2.) Hit Enter/Tab, and accept str_replace and is written out for me.
3.) Type in “(” directly after the function name and the new suggested snippet mode kicks in. Now your line looks like (where the curly braces mean tab indexes with placeholder or default text):
str_replace( {$search} , {$replace} , {$subject} {[, int &$count ]})

Example 2:
Syntax: PHP
1.) Type in str_ (word complete kicks in, offers “str_replace()” SNIPPET as a suggestion)
2.) Hit Enter/Tab, and the new suggested snippet mode kicks in. Now your line looks like (where the curly braces mean tab indexes with placeholder or default text):
str_replace( {$search} , {$replace} , {$subject} {[, int &$count ]})

I find it counter intuitive to have the the projects plugin open, with bars on the right and left of your screen, simply to have function syntax available when I click a button. This is a very long drawn out and buggy process currently.

Thanks and I hope this makes sense! :)