problem with tabs in newlisp-edit/newlisp-gs

Started by kinghajj, September 04, 2007, 11:40:25 PM

Previous topic - Next topic

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.



http://kinghajj.home.comcast.net/newlisp-gs-tab-problem.png">



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

#1
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...



http://artfulcode.net\">Artful code

Lutz

#2
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:
(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.

Jeff

#3
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...



http://artfulcode.net\">Artful code

kinghajj

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