On Fri, 14 Nov 2008 17:07:25 -0700, "Steve Hall"
<[EMAIL PROTECTED]> wrote:
> From: Brandon Martin, Fri, November 14, 2008 2:51 pm
>>
>> Not sure what the exact term is but I want to be able to have
>> snippets or templates that are tab triggered if that makes sense. I
>> think in gedit they are called snippets. You can have a whole
>> function laid out with placeholders so you type the triggered word
>> hit tab and the then tab to each placeholder and fill it in with
>> what you need.
>
> Cream has templates, you put them in your cream-user. Example:
>
> call Cream_template_assign("", "url", "http://www.")
>
> Put a filetype (e.g., "html") for the first argument if you want it to
> apply only to a certain filetype. (As indicated in the statusline.)
>
> Check out the bottom of cream-templates.vim for plenty of examples
> already available in Cream. "s:findchar" locates the cursor after
> the template has been inserted.
>
>
>
So I make sure I understand this right. In gedit or scribes I can do this
tab triggered word in link so I type link and hit tab and I get
<a href="{1:placeholder}">{2:placeholder}</a>{0:}
something along thos line so when I hit tab the whole {1:placeholder} is
highlighted and I type what I want there then I hit tab again and the
{2:placeholder} is highlighted and I type what I want there the I hit tab
again and the cursor goes to {0:}. This same idea works with the cream
templates?
Thanks for you help Steve.
--
Brandon Martin
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general