For SWI-Prolog documentation pages, show source appears only on pages for predicate

The SWI-Prolog documentation pages for built-in predicates have a nice feature to show the Prolog source code for a predicate by clicking on image.

The feature only appears on the predicate page, e.g.

setup_call_cleanup/3
image

it does not appear on section pages, e.g.

4.8 Meta-Call Predicates
image

If you expect the feature for a predicate and don’t see the icon, in the left table of index click on the specific predicate and the icon may be there.


Note: Some predicates are implemented in C and will not have the show source feature.

split_string/4
image

To identify predicates implemented in C search C files (*.c) for PRED_IMPL, e.g.

1 Like