It’s in three parts:
[+as.showForm:is=`1`:then=`
<form [+as.formId+] action="[+as.formAction+]" method="post">
<fieldset>
<input type="hidden" name="advSearch" value="[+as.advSearch+]" />
<label for="ajaxSearch_input">
<input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
</label>
<label for="ajaxSearch_submit">
<input id="ajaxSearch_submit" type="submit" name="sub" value="[+as.submitText+]" />
</label>
</fieldset>
</form>
`+]
If the snippet was called with the &AS_showForm parameter either left out or set to 1, then the form will be displayed. The placeholders [+...+] are used to build the form with either parameters set in the snippet call or default values if the parameters are not in the snippet call. For example, [+as.submitText+] will be the text on the submit button, taken from the language files - $_lang[’as_searchButtonText’] = ’Go!’.
[+as.showIntro:is=`1`:then=`
<p class="ajaxSearch_intro" id="ajaxSearch_intro">[+as.introMessage+]</p>
`+]
If the snippet parameter to show the introduction is set to 1, then the introduction message from the language file is displayed in <p> tags.
[+as.showResults:is=`1`:then=`
[+as.results+]
`+]
If the snippet parameter &AS_showResults is set to 1 or left out (default is 1), then the results of the search is displayed by replacing the [+as.results+] placeholder with the actual search results.
So far AjaxSearch comes with 30 language files. Many of the output of these placeholders can be changed by editing the language file you specify in the snippet’s parameters; english is the default.
You can read the documentation, in the file assets/snippets/ajaxSearch/ajaxSearch_readme.txt to see the possible parameters and their default values, as well as an explanation of tpls, placeholders, and several examples including styling.