Hello.

When I load a user highlighter color scheme I created myself, an unknown
(default?) color scheme is loaded, but not the one I selected. When I load
different color schemes, always the same unknown one is loaded. This applies to
the program settings and the highlighter settings.

Steps to reproduce

- Open a file with a _user_ highlighter, such as .au3, .pb, etc.
- Write a line with a comment character.
- In Settings / "Highlighters Settings" in the tab "Colors" change the color for
"comment" to [color=#ff9900]orange[/color].
- => the color is taken over in the editor. 
- In the field "Color Scheme" enter a name, e.g. "a1" and save the color
scheme.
- Then load the color scheme => the unknown color scheme is loaded, NOT the
saved one. The color for "Comment" is [color=#999999]gray-like[/color].

The same happens if I save several color schemes: a1, a2, a3, ... No matter
which one I load, the unknown color scheme is always loaded.

[color=#0000aa]What do you think about the following idea?[/color] (It's just a
suggestion.) :)
 
- Split the settings into "Colors" and "Skins". Save the settings for Skins in
the folder "Skin", the highlighter colors in the folder "Colors" and the general
colors for the editor in the folder "Colors\General". [color=#999999](This way
there are no compatibility issues with previous PSPad versions).[/color]

- Restore the previous code for setting user highlighters.

- In Settings / Program Settings, create a separate Skins area in the left
dialog box directly under Colors. In this area you can only load, save (and
create?) skins. Skins are only for the PSPad window and controls, but not for
editor and highlighter.

- In Settings / Program Settings area "Colors" add "Load" and "Save" and save
the color settings in the folder "Colors\General".
[color=#ff9900]---- or:[/color]
- In Settings / Program Settings area "Colors" delete the section "Color Scheme"
and save the colors from "Colors" with each user highlighter.

Bernd.

-- 
<https://forum.pspad.com/read.php?2,73597,73597>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem