Pce editor with word wrap, and line numbers

I’m using: SWI-Prolog version 9.0.4 for x64-win64

I want the code to: have a input editor for text manipulation (load, save, save as, modified)

But what I’m getting is: editor without word wrap, and no line numbers

My code looks like this:

initialise(MyApp) :->
	programTitle(AppTitle),
	send_super(MyApp,initialise,AppTitle),
	send(MyApp,append,new(D,dialog)),
	
	send(D,append,new(menu_bar)),
	send(D,append,new(tool_bar(MyApp))),
	
	send(MyApp,fill_menu_bar),
	send(MyApp,fill_tool_bar),
	
	send(D,append,new(TE,editor)),
	send(new(report_dialog),below,D),

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.

Hello,

You are sure?
Here a screen shoot:

Imgur

The Code can be download from here:
https://dpaste.com/CBCXFAHZU

would be nice for a example with line numbers.

Jens

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.