QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Dimster on November 26, 2021, 11:24:16 am

Title: Loss my IDE colors.
Post by: Dimster on November 26, 2021, 11:24:16 am
So here's something strange. I shut down my computer last night as I normally do. When I powered up this morning all my qb64 programs lost the IDE colors which I had set. They all powered up this morning in the default IDE dark blue. And of course I did not keep a record of the IDE colors which were helping me determine which of the programs were working ok v's those that needed more help. Has this happened to anyone else? An idea what I may have done to cause it? I'm using the 64 bit v2.0. (as the v2.0.1 and v2.0.2 do not have changes material to my programs I have not updated these changes. Not sure if updating to the latest would have saved me in this case?)
Title: Re: Loss my IDE colors.
Post by: bplus on November 26, 2021, 12:33:17 pm
Assuming you did save color scheme name, what's you IDE Color section look like?

Mine is this:
Code: QB64: [Select]
  1. Config.txt v 1.4  config.ini v1.5 (QB64 folder /Internal then look for config.ini file)
  2. copy/paste after Heading Color Scheme QB64 v x.x /internal/config.ini
  3.  
  4. [IDE COLOR SCHEMES]
  5. Instructions1="Create custom color schemes in the IDE (Options->IDE Colors)."
  6. Instructions2="Custom color schemes will be stored in this section."
  7. Scheme11$ = "QB64 Spooky|245245245200000000000118206128128245118000118255255255000000000128255255128000100"
  8. Scheme10$ = "QB64 Candy Corn|245245245157255000245206088255157000118039010255255255235088000000147147059000100"
  9. Scheme9$ = "Dark Violet|170000255220110000245010140020177070060255060049186245011022029020020000000147177"
  10. Scheme8$ = "QB64 HOT|180000000140190000245128177200200010085000255090100255200100000226108000150000100"
  11. Scheme7$ = "QB64 BLACK|125125125140130120255050125255255085085000255085200186000000000177108000100000147"
  12. Scheme6$ = "QB64 GREEN|000255000147206100100050125255255085085000255085200186000125000177108000100000147"
  13. Scheme5$ = "QB64 BLUE|000000255147206100120255140255255085085255085085255177000000128177108000100147000"
  14. Scheme4$ = "QB64 RED|255000000147196088120255140255255085085255085085255255125000000000108177000147100"
  15. Scheme3$ = "QB64 DARK Steve|226226226147196235245128177255255085085255085085255255000000000000108177000147177"
  16. Scheme2$ = "DarkSun|255255255255045020000245000255140000020255085120255000000000000150130000245147177"
  17. Scheme1$ = "Dark Zepelin|255255255216000235000245000050255000085255085255255000000000000000108177000147177"
  18. Scheme12$=Charcoal|157157157098098098196137000255226078245049000118118118029029029010010010059000100
  19. Scheme13$=PreCharcoal|118118118000147000069069069255157000167118255157157157029029029010010010059000100
  20. Scheme14$=Forest|049177069000137049255206010000196147167088039147137245039020000000000000000147177
  21. Scheme15$=0
  22.  
Title: Re: Loss my IDE colors.
Post by: Dimster on November 26, 2021, 03:32:17 pm
You know, I didn't realize I could name and save the color scheme. I went back to the IDE and I can see how to do that but I just missed that option as it appeared the various schemes I had, saved themselves when the program was saved. Thanks of pointing this feature out. I wonder if I had of done that, that I wouldn't have lost them?

Anyway... no big deal, just an inconvenience.
Title: Re: Loss my IDE colors.
Post by: johnno56 on November 26, 2021, 06:27:07 pm
I detect a need for a tutorial on how to load, save and create IDE colour schemes... Nudge, nudge, wink, wink.
Perhaps, in keeping with the up and coming season, a Christmas colour scheme...

Just a thought...  Any takers?
Title: Re: Loss my IDE colors.
Post by: johnno56 on November 27, 2021, 02:52:04 am
Ok. Here is a sample of one that I just whipped up...

  [ This attachment cannot be displayed inline in 'Print Page' view ]  

This is the scheme: Scheme20$=xmas|000186000255088069255255255255255085255128000085255255000020000000060000255255060
Title: Re: Loss my IDE colors.
Post by: Dimster on November 27, 2021, 09:46:34 am
Cool. Great Christmassy vibe. Needs a little Gold, Frankincense and Myrrh.
Title: Re: Loss my IDE colors.
Post by: Dimster on November 27, 2021, 11:19:38 am
Seems Gold and Frankincense are both yellow in color so here is my Christmas Myrrh themed screen.
Title: Re: Loss my IDE colors.
Post by: Dav on November 27, 2021, 12:31:22 pm
Nice schemes!

- Dav
Title: Re: Loss my IDE colors.
Post by: bplus on November 27, 2021, 01:26:58 pm
When I think of Christmas colors, it's red, green and white that dominate my idea:
  [ This attachment cannot be displayed inline in 'Print Page' view ]  

Scheme15$=Xmas|255255255000196000245226000049137049085255085000255177088010010000000000000000100
Title: Re: Loss my IDE colors.
Post by: bplus on November 27, 2021, 02:07:39 pm
OK for SADD here is XmasSnow:
  [ This attachment cannot be displayed inline in 'Print Page' view ]  

Scheme17$=XmasSnow|128000000000108000118196000049137049069147010186039078235235255216206216000000235
Title: Re: Loss my IDE colors.
Post by: SMcNeill on November 27, 2021, 02:40:26 pm
For those who want a TRUE Christmas IDE color scheme, I present the following.

  [ This attachment cannot be displayed inline in 'Print Page' view ]  

If you're a windows user, all you really need is the QB64-Xmas.EXE in your standard QB64 folder.  If you're a Linux/Mac user, you'll need to extract the whole shebang and then compile the QB64.bas file inside the source folder.  (DON'T COMPILE EXE TO SOURCE FOLDER.  The QB64 EXE that it makes for you needs to go into the main folder so the paths all work properly...)

Note:  This *will* overwrite your existing source folder with a QB64-Xmas mod, so rename that old folder to "source-back up", or some such, so you can restore it in the future if you ever need to recompile QB64 again.  (But, honestly speaking, how many people here edit, modify, and recompile the QB64 source themselves?  And if they do, how many of them use an existing installation of QB64 to do so, rather than always grabbing the latest version with the most up to date changes from the repo?)

Extract, or compile as needed, to create your own QB64-Xmas IDE, and then have fun typing away in it!  The faster you type, the more it looks like Christmas.  ;D
Title: Re: Loss my IDE colors.
Post by: FellippeHeitor on November 27, 2021, 06:36:59 pm
That'll need a seizure warning at startup Steve 😂
Title: Re: Loss my IDE colors.
Post by: SMcNeill on November 27, 2021, 06:59:32 pm
That'll need a seizure warning at startup Steve 😂

Just like my Hillbilly Xmas-Mill....

A few years back, we had some Christmas lights that quit Christmasing.  They came on, but never blinked.  After some tinkering, we decided the timer was out on the blinker...

So, in typical Hillbilly fashion, we came up with a solution -- we spliced wires to the windmill in my front yard and connected and used it to generate the blinks.  Every half turn of the mill, it toggled an old fashioned on-off switch.

Worked good with a gentle wind.  Didn't work with no wind -- lights might be stuck either on or off.  Then we had one of those harsh winter Nor'easter's blow through where the wind howled like a freight train outside...

Needed a seizure warning on those things then!!!
Title: Re: Loss my IDE colors.
Post by: johnno56 on November 28, 2021, 12:50:08 am
Cool examples one and all... It won't be long until Christmas is over and all the Easter products will appear in the stores... (instead of Easter, insert the next cultural holiday, that comes to mind)... We have plenty of time in which to sharpen our crayons.... Moo Ha Ha...
Title: Re: Loss my IDE colors.
Post by: SMcNeill on November 28, 2021, 01:22:10 am
Cool examples one and all... It won't be long until Christmas is over and all the Easter products will appear in the stores... (instead of Easter, insert the next cultural holiday, that comes to mind)... We have plenty of time in which to sharpen our crayons.... Moo Ha Ha...

New Years would be my guess for the next holiday after Christmas...  :D
Title: Re: Loss my IDE colors.
Post by: johnno56 on November 28, 2021, 02:39:14 am
How could I have forgotten THAT one? Thanks Steve...
Title: Re: Loss my IDE colors.
Post by: Dimster on November 29, 2021, 10:45:08 am
So it just happened AGAIN. All my saved work in progress open in the default IDE color scheme and not the scheme they were saved with

This time I did save my IDE color scheme so it was a simple matter to restore the colors. I don't understand why they didn't open with the color scheme I had assigned when I saved them. Appears I may need to give up on using the color schemes as a meaningful indication of the program's coding stage of development.

I wonder if this has anything to do with Windows. I'm also trying to figure out why, after a windows update about a month ago, that it interrupts whatever I'm doing at the time, to tell me it can't access a "h" drive which I do not have. It then displays the contents of a drive which I do have. This has been happening spasmodically, just like this loss of IDE color. Things that make you go HUUUUM.
Title: Re: Loss my IDE colors.
Post by: bplus on November 29, 2021, 11:11:08 am
@Dimster

You are trying to color code the stage of your program edits??? Yikes!

Do you know now with QB64 v2.0+, when you Open a 2nd and 3rd QB64 window the screens will be different colors, or can be, and dang if I remember how I set it up but I have my 2nd window set to QB64 Red.

Oh! just set the Color Scheme when you have the 2nd Window Open.

I use QB64 Red for Read Only :) Now if I open a 2nd QB64 IDE, I see it immediately and now know which is the one I want to edit.

BTW XmasSnow sucks because if current line is like a For of an IF it will be Red-lined until you "fix" it with the Next or the End If, that's fine but when something is Red-lined and all the print is dark, you can't read the line!
Title: Re: Loss my IDE colors.
Post by: Dimster on November 29, 2021, 12:04:57 pm
I guess it is somewhat like color coding an edit but not exactly. I have an outline of a finished program on paper with all the various tasks and final results that I want the program to accomplish.

Those tasks that I want to add to the main program are developed separately with lots of trial and error. I'm presently working on the task of Trending with multiple different files, so the Trending1 is born. It is raw 1st attempt coding and carries a Brown IDE scheme. Once Trending1 can produce reliable and accurate results with just one of the data files it then is saved as Trending2 with a Purple IDE scheme. Trending2 then has to work with all the data files and the issues that volume creates. As soon as that produces reliable and accurate results it's saved a Trending3 with a Green IDE scheme. It is this one that I incorporate into the Main program and run the whole thing before moving onto the next task. While the numbering is a great indication of what stage the development is in, it's the color scheme that reminds me of the stage as I'm working on it.

On opening a 2nd or 3rd window, are you referring to the various DeskTops which Windows will generate? I generally use that feature when I'm running code and I know it's going to take a while for it to run, so I'll open a 2nd desktop window and keep working another piece of code. Read-Only as red. I should have my Main Program as read only especially when I'm review it in a 2nd desktop window.

Sounds like XmasSnow has a form of encryption. Amazing how a blanket of snow can change the look of the world.
Title: Re: Loss my IDE colors.
Post by: bplus on November 29, 2021, 03:45:18 pm
Ah @Dimster

Oh I see you are thinking the same as I thought when this color option was started with 2.0, that you could save a scheme with each .bas file, no, not yet anyway!

By opening a 2nd QB64 Window, I mean starting another .bas file in another instance of QB64 IDE program, those can be color coded by setting the Color Scheme for the 2nd instance of a running QB64 IDE with or without .bas loaded in.