newLISP Fan Club

Forum => newLISP newS => Topic started by: kinghajj on September 04, 2007, 11:40:25 PM

Title: problem with tabs in newlisp-edit/newlisp-gs
Post by: kinghajj on September 04, 2007, 11:40:25 PM
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.



(//%3C/s%3E%3CURL%20url=%22http://kinghajj.home.comcast.net/newlisp-gs-tab-problem.png%22%3E%3CLINK_TEXT%20text=%22http://kinghajj.home.comcast.net/newlis%20...%20roblem.png%22%3Ehttp://kinghajj.home.comcast.net/newlisp-gs-tab-problem.png%3C/LINK_TEXT%3E%3C/URL%3E%3Ce%3E)



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.
Title:
Post by: Jeff on September 05, 2007, 04:53:47 AM
I've noticed this too; spaces/tabs appear to be variable width, even when the font is fixed width.
Title:
Post by: Lutz on September 05, 2007, 08:02:47 AM
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.
Title:
Post by: Jeff on September 05, 2007, 08:05:14 AM
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)?
Title:
Post by: kinghajj on September 05, 2007, 03:16:13 PM
I use the font DejaVu Sans Mono at 16pt, and for me having the tab at 20pt looks perfect. Thanks for the tip, Lutz.