The xpce editors do not have line number display. Possibly you can add that in Prolog, but I’m afraid that is quite a challenge. They do understand ->wrap: word. The xpce graphics subsystem is a bit out of fashion though. It is still mostly used to deal with the IDE components.
The background window is from PrologEditor, which is a Windows application that embeds Prolog. The front window is from Prolog itself. They use completely unrelated technology.
You get what looks like a fairly decent editor, surely for Prolog code, using PceEmacs, which you can start using ?- edit(Something). or ?- emacs(SomeFile). It doesn’t do line numbers though. Well, it tells you in the status line at what line the cursor is.