Hi all!
When documenting old code, I find myself trying to stick to ~80 columns, but plenty (well some) of my actual code lines is longer than that. So what I'd like is to have the right-margin displayed at say 78 chars, but soft wrap on the current window size.
Is this already possible? If not, is this useful in general?
Thanks, Daniel.
On 12/01/2006, at 21:40, Daniel Vollmer wrote:
When documenting old code, I find myself trying to stick to ~80 columns, but plenty (well some) of my actual code lines is longer than that. So what I'd like is to have the right-margin displayed at say 78 chars, but soft wrap on the current window size. Is this already possible? If not, is this useful in general?
No, not possible but I've seen it in at least one other editor (I forgot which one :/), and I guess the idea is to use it as some sort of page 'guide', more than a wrap border. So I guess it could be useful, but would maybe be a bit too complex in the menus etc.
-- Sune.
On Jan 12, 2006, at 5:12 PM, Sune Foldager wrote:
On 12/01/2006, at 21:40, Daniel Vollmer wrote:
When documenting old code, I find myself trying to stick to ~80 columns, but plenty (well some) of my actual code lines is longer than that. So what I'd like is to have the right-margin displayed at say 78 chars, but soft wrap on the current window size. Is this already possible? If not, is this useful in general?
No, not possible but I've seen it in at least one other editor (I forgot which one :/),
jEdit has a plugin that allows you to put a margin indicator at any column you like and is separate from the soft-wrap setting. Doesn't help much with Daniel's problem, but maybe that's the editor you were thinking of Sune. _matt
On 13.01.2006, at 01:12, Sune Foldager wrote:
On 12/01/2006, at 21:40, Daniel Vollmer wrote:
When documenting old code, I find myself trying to stick to ~80 columns, but plenty (well some) of my actual code lines is longer than that. So what I'd like is to have the right-margin displayed at say 78 chars, but soft wrap on the current window size. Is this already possible? If not, is this useful in general?
No, not possible but I've seen it in at least one other editor (I forgot which one :/),
I've found (and come to like it) in gedit, the Gnome Text Editor, but as you say (and as I realized while writing the above message) it's not exactly intuitive or easy to describe.
-- Sune.
Daniel.
On Jan 12, 2006, at 3:40 PM, Daniel Vollmer wrote:
So what I'd like is to have the right-margin displayed at say 78 chars, but soft wrap on the current window size.
As a recovering BBEdit user, this is a feature I miss. If I understand you correctly, it's what BBEdit calls it the Page Guide (or "Philip Bar" in older versions). A few Windows editors that I use at work have this feature too.
I think it's very convenient, since there are times when wrapping is impractical, but you'd still like a subtle indication that you're wandering off too far. It works especially well with a keystroke assigned to this script: <http://daringfireball.net/2004/10/ bbedit_soft_wrap_toggling>.
--Chris
On 13/01/2006, at 12:53, Christopher Biagini wrote:
As a recovering BBEdit user, this is a feature I miss. If I understand you correctly, it's what BBEdit calls it the Page Guide (or "Philip Bar" in older versions). A few Windows editors that I use at work have this feature too.
Ah, yes well you CAN get the bar displayed without softwrapping enabled. It will then not softwrap at the window border either of course, but just extend the lines.
-- Sune.
On Jan 13, 2006, at 10:49 AM, Sune Foldager wrote:
Ah, yes well you CAN get the bar displayed without softwrapping enabled. It will then not softwrap at the window border either of course, but just extend the lines.
Ah, missed that! I misunderstood the OP's request and assumed TM didn't have anything similar to the Page Guide.
Thanks :)
--Chris