Feature Requests item #1565239, was opened at 2006-09-25 17:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1565239&group_id=2439
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Peufeu (peufeu) Assigned to: Nobody/Anonymous (nobody) Summary: Smart Tabulations Initial Comment: This is a suggestion for a simple feature which I would love to see implemented in Scite. I like to use a proportional font for the comments style (as do many others) because reading text using a fixed width font is painful. I also like to use a proportional font for coding because I find it more readable and less tiring for the eyes. However it screws up the tabs, badly. See this example : http://peufeu.free.fr/scite.png My proposition is simple : - Use the spaceWidth of the monospace font to compute tabs. Reason : proportional fonts have small space widths, hence the tab width is also too small, and inserting a tabulation only adds a very small indentation (about 8 mm on my screen, for 4 spaces). - Compute the tab positions as if the font used was monospace, but use the user chosen font for display. I will explain in more detail (see attached image) : Suppose you have this text : iii(tab)= 1 mmm(tab)= 1 Using a proportional font, tab size is spaceWidth*4 so the extra width of the "m" characters is enough to push the "=" one tab further, screwing up the layout. The position of the character after the tab (the "=" here) should thus not be calculated based on the width of the characters coming before, but rather using only the number of characters multiplied by a constant width. The layout wouldn't break anymore when switching between fonts. Thanks ! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1565239&group_id=2439 _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
