Automatically format Prolog source code