Author |
Topic |
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Mar 23 2022 : 12:43:50 PM
|
Is there a horizontal limit where coloring stops? I am seeing plain white code to the right of column 1000 here. |
|
feline
Whole Tomato Software
United Kingdom
19066 Posts |
Posted - Mar 24 2022 : 09:47:04 AM
|
Is this a single monster function call, or a many line block of code formatted into a single line? I will need to set up some test cases here.
I don't know of such a limit off the top of my head, but its certainly possible. Obviously it's not something that comes up often. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Mar 24 2022 : 09:53:33 AM
|
Well, weird old code, many lines with up to 1500 characters in a single line. Noticed that words starting after column 1000 are no longer colored, words that start before are, even when they go over 1000. |
|
|
feline
Whole Tomato Software
United Kingdom
19066 Posts |
Posted - Mar 24 2022 : 2:01:40 PM
|
I am getting the lack of colouring after column 1,000 even when word wrapped, I have put in a bug report for this:
case=147983
But its all or nothing for a single symbol, I don't get any half coloured symbols. Which IDE, version of VA and programming language are you seeing this in? |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Mar 25 2022 : 06:07:32 AM
|
Nope, no half colored symbols, what I see is that any symbol that starts before column 1000 is colored, even when it exceeds column 1000, but symbols starting after column 1000, are not anymore colored. And as you can verify, the column indicator is not drawn either when set to 1000+ (999 seems the limit, to which its reset when entering the settings again) (C#, VS2017, Win7)
Here you see the column indicator set to 999 and the resulting coloring
|
Edited by - Uniwares on Mar 25 2022 06:15:49 AM |
|
|
feline
Whole Tomato Software
United Kingdom
19066 Posts |
Posted - Mar 25 2022 : 07:27:04 AM
|
OK, I am seeing the same thing here then. The start column of the symbol is what matters for colouring.
Lines that long must be a real pain to work with, you have my sympathies! I would be tempted to try code formatting, just to get the lines to better and more manageable length, but there are so many different preferences and options here, it can be messy. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Mar 25 2022 : 08:16:37 AM
|
Much worse is the fact that this is a String.Format() with dozens of parameters that gets inserted into a javascript method call in an asp page. ignoring the fact that most of the parameters are already initialized variables in the JS on page_load. All of that one must ignore because its working code and as such it must not be changed without approval of the whole organizational hierarchy. So please dont put much of a priority on "bugs" like that. |
|
|
feline
Whole Tomato Software
United Kingdom
19066 Posts |
Posted - Mar 25 2022 : 08:57:54 AM
|
To be fair, not touching working code makes a lot of sense. If there is a confirmed bug that's one thing, but changing something for the sake of it, that's a different matter. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|