Change background color of indent in VSCODE? - fortran

I am translating the theme from my favorite FORTRAN editor (now defunct) to VSCODE. So far so good. The one thing I can't seem to locate is how to colorize the background of first 6 columns and only when the line has data.
defunct editor:
my VSCODE theme:
Is it possible to do this in a theme or will that have to go into an extension?

Related

Change the background color in WebStorm

I have a theme installed. I just want to make the background darker than what it is, it really helps especially because I have vision problems. I guess I need to use the "Color scheme" from options, but I really couldn't find anything to change the background.
To change the background color of the Editor tab, do the following:
File | Settings (WebStorm | Preferences on macOS)
Editor | Color Scheme | General
Make a copy of the Color Scheme (if it's a bundled one or provided by a plugin) so that you can customize it (although the IDE should do that for you automatically)
Locate Text | Default text entry and change the background color there.
An example: modified Dacrula theme with bright yellow background (yeah, looks completely unusable, but good for illustration purposes):
Please note: some languages can provide own background colors. E.g. PHP -- a typical PHP-code only file will have all code inside a single <?php tag so you may see a different background color for PHP code compared to other languages. Test and adjust it as needed.
Note #2: GUI Theme (which is about styling the rest of the IDE GUI): it always linked to some Color Scheme (so the GUI and Editor area have similar colors). When you will be switching between GUI Themes make sure to double check the applied Color Scheme as well (if you need to use your custom one).
Useful shortcut: View | Quick Switch Scheme -- it will bring a popup menu that allows quickly switching different themes and schemes.

How to disable VS2019's syntax coloring for C++ and make it look like VS2017

I'm a light theme user, and I guess that makes me unpopular, but I'm sure there are still some light theme users out there. I have switched to VS2019 and the light theme (called Blue Theme) was a nightmare. It turned out it was an issue and the solution can be found in this thread.
My other question is the C++ syntax coloring in VS2019. It's just too many colors and makes it really hard for the eyes (once again if using the light theme).
I have looked but don't know where can I disable this new fancy syntax coloring and go back to VS2017's syntax coloring in VS2019. Any tips?
Here's a screenshot of what I have in VS2019:
I think it's a bit too much. I don't wanna see purple, green, red and brown.
As per this Microsoft link there is supposed to be this Color Scheme and it can be set to VS2017, as per this screenshot:
But for some reason I don't have it and I have just updated it and this what my Text Editor->C/C++->View looks like:
It looks the only way to solve this problem is to change the colors one by one. But you may ask, how do I come up with colors, I'm not a graphic/UI/UX designer? Here's how. You open the colors in VS2017 in Options->Fonts and Colors and select Text Editor in Show settings for:, and there when you scroll down you will see the colors for all C++ keywords.
That was Step 1. In Step 2 you go to the same dialog in VS2019, and one buy one change VS2019 settings to match those of VS2019. Having two monitors or one wide monitor helps.
Here's the screenshot:

Unusual color of text in console

today i need to print colorful text in console, but the color should be "unusual". I've found the only way to colorize text with windowh.h
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), colorNumber)
Main problem is the limited choice of colorNumber, there are only 16 colors, but it is not enough. What if i want to make text color #33F5C8? What if i want to make it transparent? How can i do it?
(nonstandard cpp tools allowed)
With ANSI you can use the following code to set a RGB based color:
\033[38;2;⟨r⟩;⟨g⟩;⟨b⟩m
To reset color after change:
\033[0m
Pay attention that the visual's console might not support it, although the CMD probably does. To check the colors, compile your program and run it using the CMD.

WebStorm editor tab background colour

I want to use a light theme in WebStorm 2017.1 but for some reason the editor tabs are always dark.
I can change the font colour but that also changes it in the project tree view which has a white background.
The theme under Appearance is set to IntelliJ and the editor theme is set to default but I have tried it with many combinations.
Is this a bug or is there a setting I haven't found yet?
The issue was caused by the Material Theme plugin, disabled it and everything looks fine.
Thanks to #LazyOne for pointing me in the right direction.

SDL for a edit text box

I want to write a code editor which supports code highlighting, selection, search and replace and similar features.
Since I'm unsatisfied with normal edit box controls (I want WAY more flexibility) I decided to write my own UI controls. It would be great if the editor could run on linux and windows (I don't have a Mac but that would be great as well) and thus I've been thinking on using SDL to render the edit text box control.
As far as I know I can draw anti-aliased text and SDL is nicely cross-compatible, but I'm unsure if functionalities like smooth scrolling could be implemented.
Question: is it possible to use SDL for a custom edit text box and have smooth scrolling?
Here is LazyFoo's tutorial on editable text input boxes: http://lazyfoo.net/tutorials/SDL/32_text_input_and_clipboard_handling/index.php
It doesn't do scrolling: you'll have to do it yourself. The LazyFoo tutorials on scrolling and scrolling backgrounds here ( http://lazyfoo.net/tutorials/SDL/index.php ) should help, although it's not, obviously, a text box that's being scrolled.