Page 1 of 1
Vertical edge for the IDE
Posted: Fri Oct 29, 2010 4:37 am
by Mistrel
I understand that the IDE does not support line continuation but I would at least like some degree of conscious control over the width of my code. Especially when I write comments I have no idea how far to the right I'm really going.
By vertical edge I mean this vertical line that tells you the width of your code in characters. In other languages I like to keep the width within 80 characters. And in PureBasic, where possible, I would like to do the same.

Re: Vertical edge for the IDE
Posted: Fri Oct 29, 2010 6:45 am
by eesau
Scintilla supports those kind of vertical dividers natively so I think it'd be fairly trivial to implement. I'd use this feature too.
Re: Vertical edge for the IDE
Posted: Fri Oct 29, 2010 7:02 am
by PB
Why don't you drag the Tools Panel to the required width point?
Re: Vertical edge for the IDE
Posted: Fri Oct 29, 2010 7:11 am
by eesau
PB wrote:Why don't you drag the Tools Panel to the required width point?
I keep my Tools Panel on the left. Besides, you can set the divider precisely to column 80, which you can't do with the Tools Panel.
Re: Vertical edge for the IDE
Posted: Fri Oct 29, 2010 7:35 am
by Mistrel
PB wrote:Why don't you drag the Tools Panel to the required width point?
Err.. what if I want to change the font or font size? Or if I shrink the IDE then the code section gets squished and I'm back to square one.
Re: Vertical edge for the IDE
Posted: Fri Oct 29, 2010 10:04 am
by PB
I see. I didn't realize you were going to resize the IDE or change its font often.
It was just the first thing I thought of that I assumed would be a good solution.
Re: Vertical edge for the IDE
Posted: Mon Sep 19, 2016 1:21 am
by Mistrel
Bumping this since we now have the ability to split lines.
Re: Vertical edge for the IDE
Posted: Tue Sep 20, 2016 2:00 pm
by kenmo
+1
For a few years I have enabled Scintilla edge lines (and some other Scintilla features not utilized by the PB IDE) using external tools, for example (Windows):
Code: Select all
; Compile this, add it as an IDE Tool, with the "New" and "Load" triggers
;
*Sci = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
If *Sci
Color = SendMessage_(*Sci, #SCI_STYLEGETBACK, #STYLE_LINENUMBER, #Null)
SendMessage_(*Sci, #SCI_SETEDGECOLOUR, Color, #Null)
SendMessage_(*Sci, #SCI_SETEDGECOLUMN, 80, #Null)
SendMessage_(*Sci, #SCI_SETEDGEMODE, #EDGE_LINE, #Null)
EndIf
EDIT: Updated example to use a color from your current color scheme.
Re: Vertical edge for the IDE
Posted: Tue Sep 20, 2016 7:07 pm
by Mistrel
That's great! Thank you.