How you store the mapping between display and keyword, is not related to SynCompletion.
Lots of ways:
- 2 stringlists, both the same order, items at same index, belong together.
- array of record s1,s2:string; end;
- ...
Assign
SynCompletion1.OnSearchPosition := @DoSearchPosition
And in
procedure TForm1.DoSearchPosition(var APosition: integer);
you can:
- set APositon to indicate which entry to highlight
- filter the list, an remove or add entries
The filtering is done in the example (see folder example/synedit)
----
SynCompletion1.OnCodeCompletion
can be used to insert the correct text in the editor.