We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware,  Documentation,  Website Suggestions › Don't highlight left margin when selecting text
Page Index Toggle Pages: 1
Don't highlight left margin when selecting text (Read 1642 times)
Don't highlight left margin when selecting text
May 9th, 2005, 2:09am
 
A minor aesthetic suggestion.  I like the margin of whitespace to the left of the code.  However, it shouldn't be highlighted when I select multiple lines of code.  It makes it seem as though there's a space at the start of the lines that will be copied along with the code.
Re: Don't highlight left margin when selecting tex
Reply #1 - May 9th, 2005, 11:20am
 
I agree with stendahl.
I was a bit confused today when it happened to me.
Re: Don't highlight left margin when selecting tex
Reply #2 - May 9th, 2005, 3:14pm
 
yup, it's ugly and already on the todo list. the problem is that it's a mess to change but the folks on the beta list preferred that it was worth it to put up with because the extra multi-pixel gap on the lefthand side was nice.

anyone who wants to take a look to try their hand at fixing the code can find it in the syntax package:
http://cvs.sourceforge.net/viewcvs.py/processing/processing/app/syntax/
particularly in JEditTextArea and the Painter classes.
Re: Don't highlight left margin when selecting tex
Reply #3 - May 10th, 2005, 2:31am
 
Index: app/syntax/TextAreaPainter.java
===================================================================
RCS file: /cvsroot/processing/processing/app/syntax/TextAreaPainter.java,v
retrieving revision 1.2
diff -r1.2 TextAreaPainter.java
615c615
<         x1 = 0;
---
>         x1 = textArea._offsetToX(line, 0);
618c618
<         x1 = 0;
---
>         x1 = textArea._offsetToX(line, 0);
Re: Don't highlight left margin when selecting tex
Reply #4 - May 10th, 2005, 2:48am
 
awesome.. actually a hack since it's not getting the gutter, but it's way better than the previous state, and i'd rather have a simple hack that does it 90% right than spend longer digging through things to get it perfect. thanks a ton.
Page Index Toggle Pages: 1