template_hint.pl -- Generate template hints for CondeMirror
Provide templates for the Prolog template-hinting functionality of the SWISH editor.
- visible_predicate_templates(+Module, +Options, -Templates) is det
- True when Templates is a JSON dict holding autocompletion templates for Module.
- visible_predicate(?PI, +Module, +Options) is nondet
- True when PI is a plain predicate indicator for a predicate that
can be called in Module. Additional options:
- safe(+Boolean)
- If
true
, filter out unsafe predicates. - autoload(+Boolean)
- Load autoloadable predicates.
- predicate_template(:PI, -Template:json) is semidet
- swish_config:config(-Name, -Styles) is det[multifile]
- Provides the object
config.swish.templates
, a JSON object that provides the templates for hinting in CodeMirror.