Hi people

I'm trying to write a ACP file for SPIP (www.spip.net) template
language. It uses a pseudo code embeded in HTML to abstract SQL querys
and PHP.

A basic syntax of a spip's loop looks like this:

<BOUCLE_name(TYPE){criteria 1}{criteria ...}{critiria n}>
      (here should end the cursor)
</BOUCLE_name>

where name can be any string , TYPE can be one item of a list
(ARTICLES, FORUMS, DOCUMENTS, etc) and criteria can be also word from
a list, with the extra requirement that can be one or more.

is it possible to write this set of rules as a acp?

I'm trying to understand the doc and code of others acp files, but I
really couldn't.

[autostring]
<bou = "<BOUCLE_${1:name}(${2:TYPE}){${3:criteria}}>\n\t"

- how can I show a popup list of word for TYPE ?
- its posible add   {^! } when user press <tab> recursively in ${3}
autocomplete?
- how can I record the name ${1} to close the 'boucle' automatically?


thank you in advance for the help.

Reply via email to