problem with tabs in newlisp-edit/newlisp-gs

Notices and updates
Locked
kinghajj
Posts: 30
Joined: Sun Jul 15, 2007 2:37 pm

problem with tabs in newlisp-edit/newlisp-gs

Post by kinghajj »

the newlisp-gs editor does not interpret tabs well. instead of defining a tab to look like 1, 2, 3 or 4 spaces, it seems to use a number above 1.5 but below 2. This is not very aesthetic, and I think that this number should be user-specified in the settings file.

The first function uses tabs, while the second uses spaces.

Image

By the way, what is the official name of this new editor? In windows it's called newlisp-GS, but in Linux it is newlisp-edit.

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post by Jeff »

I've noticed this too; spaces/tabs appear to be variable width, even when the font is fixed width.
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Because of the nature if the underlying Java JTtextPane control the tab size must be given in points. This can be edited in the configuration file with Tools/Edit Settings from the menu. Save and restart the editor after editing.

The default is:

Code: Select all

(set 'currentTabsize 16)

Lutz

ps: the name is newLISP-edit. newLISP-GS is the name of the whole newLISP/Java/Libray system where GS stands for guiserver.
Last edited by Lutz on Wed Sep 05, 2007 3:05 pm, edited 1 time in total.

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post by Jeff »

Shouldn't setting the font alter that then? Take the points on the font and multiply by the tab-size (or whatever that is set in)?
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

kinghajj
Posts: 30
Joined: Sun Jul 15, 2007 2:37 pm

Post by kinghajj »

I use the font DejaVu Sans Mono at 16pt, and for me having the tab at 20pt looks perfect. Thanks for the tip, Lutz.

Locked