03-13-2024, 02:28 PM
Sorry about the problem you ran into bplus, great discussion on solutions. Some pretty valuable stuff here.
String color in IDE
|
03-13-2024, 02:28 PM
Sorry about the problem you ran into bplus, great discussion on solutions. Some pretty valuable stuff here.
03-13-2024, 02:37 PM
Yes but we kinda drifted off topic, not real sorry ;-)) because there is some good stuff here!
b = b + ...
03-13-2024, 03:57 PM
@Terry - good to be reminded in case I need it. Here is another explanation (I find the English page confusing): FAT32 + Co
This is what it looks like for me today: Standard hard drive 500GB divided into C:\ - 200GB NTFS system drive, and extended partition with a logical drive D:\ - 300GB NTFS for data, MS Office, programming, Photoshop, etc. The 1st external HD with 2TB, divided into 4 logical drives: E:\ - 300GB NTFS (too big) system backup F:\ - 360GB NTFS backup of all important data from D:\ G:\ - 1.3TB NTFS data, movies, etc H:\ - 50GB FAT32 I:\DVD/burner The 2nd external HD with 320GB, divided into 2 logical drives J:\ - 100GB NTFS for songs K:\ - 220GB NTFS for videos, documentation from Arte etc.
03-13-2024, 04:00 PM
I agree bplus. I had an issue with a virus warning using qb64pe and the community here was extremely helpful in tracking down the cause and providing the solution.
As for the topic of this thread, I don't think I framed the issue right and suspect the IDE can not do what I was hoping it could. Nevertheless learned some stuff on accessing color for output to the screen. So thanks people.
03-13-2024, 04:12 PM
(03-13-2024, 04:00 PM)Dimster Wrote: As for the topic of this thread, I don't think I framed the issue right and suspect the IDE can not do what I was hoping it could. Nevertheless learned some stuff on accessing color for output to the screen. So thanks people.@Dimster - the IDE sets any color you want. Here is a color table. This allows you to make the IDE colorful (quietschbunt in German ).
03-13-2024, 04:30 PM
OK here is more color stuff ;-))
Code: (Select All) _Title "Color CONST for _RGBA32(red, green, blue, alpha)" Another color clipper.
b = b + ...
03-13-2024, 04:35 PM
Another color picker by keys for adding subtracting r, g, b
Code: (Select All) _Title "RGB Color Values and Chart: key e | r changes red, f | g changes green, v | b changes blue "
b = b + ...
03-13-2024, 09:30 PM
Thanks, this is getting really colorful. I understand the majority of all these glorious ways to get color. I do have a number of different IDE schemes, plus a lot of colorful displays when a program is running. So what I have been trying to do is find a way to have the screen upon which I write code (calling this the IDE screen) to display the color of strings on this IDE screen, in the color which the code is calling for the graphic screen to display.
If you go to Options on the IDE screen, select IDE colors, then select Strings, you set the color for the string "Hello World". If I write code like $Color:32 Color Blue Print" The sky is blue" <--- this string comes out in the color set in the IDE "Hello World" color. To actually see how the blue string looks I either need to run the code and see it on the graphic screen or go back to the IDE color option, select strings, select blue and I'll see it on the IDE screen. But the all the other strings in my code will also turn blue plus the blue remains the default setting. If you have code like $Color:32 Color White Print" Clouds"; Color Black Print "mainly float high in the "; Color Blue Print "sky" Not really very helpful to use the IDE string color setting once for each color as you will not see all 3 colors together unless you run the code and see it on the graphic screen. What I was hoping to find, which I now believe doesn't exist, is a way for the IDE screen to actually color up the string following the color command rather than have it in the string color set in the IDE color options for strings. So that Color White Print "Clouds", would have the word PRINT in the KEYWORDS color set in IDE Color but the string "Clouds" would now show in White and not the IDE Color set for strings. In this way I could actually see the effect of all 3 colors in my code and would not need to run the code or mess around with the IDE string color setting.
03-13-2024, 11:20 PM
What you're looking for is not possible in our IDE as it is a pure SCREEN 0 application limited to 15 different color attributes. Some are used for frame/scroller/menu rendering, the remaining are used for the syntax highlighting.
Also your logic is not bullet proof, imagine your code example but modified with GOTOs or SUB calls, so that the COLOR command is no longer in line with the PRINTs $Color:32 SetColor White Print" Clouds"; SetColor Black Print "mainly float high in the "; SetColor Blue Print "sky" SUB SetColor (col~&) COLOR col~& END SUB So how the IDE should know which is the current COLOR at which PRINT without actually running the code? And I hardly doubt you'll find any IDE out there which is able to do what you want. You've to use some external tool or color table to look up the colors.
GuiTools, Blankers & other Projects:
https://qb64phoenix.com/forum/forumdisplay.php?fid=32 Libraries & useful Functions: https://qb64phoenix.com/forum/forumdisplay.php?fid=23
03-14-2024, 12:28 AM
I just want to have a color option for LABELS...
NORMAL TEXT NUMBERS STRINGS METACOMMANDS COMMENTS BACKGROUND CURRENT LINE BACKGROUND BRACKETS MENUS .... but noooooooooo LABELS! Pete |
« Next Oldest | Next Newest »
|