Page 1 of 1

problem with tabs in newlisp-edit/newlisp-gs

Posted: Wed Sep 05, 2007 6:40 am
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.

Posted: Wed Sep 05, 2007 11:53 am
by Jeff
I've noticed this too; spaces/tabs appear to be variable width, even when the font is fixed width.

Posted: Wed Sep 05, 2007 3:02 pm
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.

Posted: Wed Sep 05, 2007 3:05 pm
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)?

Posted: Wed Sep 05, 2007 10:16 pm
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.