PyScripter displays a small code example that contains most of the code 
structures that get touched by the syntax colorer.  If you click on one of 
them, a picklist scrolls to that element, and the color chooser gets 
populated with the corresponding color, including its symbolic constant 
name, which is shown in an edit box.  You can either pick form a color 
chart or type in a new color.  It's a pretty nice system, and you can see 
clearly which syntax element you are working with.

EditPlus (Windows only) has a listbox of syntax element names, and when you 
choose one it shows you the foreground and background color, which you can 
then change using a standard Windows color selector.  It's been too long 
since I used Jedit and I don't remember how they do it.  Notepad++ has much 
the same, but you can have a different  set of syntax colors for each 
programming language if you want..

PyScripter's way is best, though, because you can see the color in a coding 
context as you are making your changes.  It's probably quite a bit trickier 
to get working right, though!

On Saturday, March 10, 2018 at 4:05:08 PM UTC-5, Edward K. Ream wrote:
>
> On Sat, Mar 10, 2018 at 8:58 AM, Thomas Passin <[email protected] 
> <javascript:>> wrote:
>
>> I just went through a really painful experience when I adopted a dark 
>> theme.  
>>
>
> ​I agree with Terry, this is excellent feedback.  Here are some ideas.
>
> *Color samples directly in Leo*
>
> Understanding colors is always going to be a chore. But here are a few 
> ideas.
>
> 1. Try Leo's show-color-wheel command.
>
> 2. Here's how to see a sample of the defined color in the VR pane:
>
> @color dark-base0 = #fdffdd
>
> Body:
>
> @language md
> <style>div#bg {background:#fdffdd}</style>
> <div id="bg"></div><br>
> <div id="bg"></div><br>
> <div id="bg"></div><br>
>
> Voila, the VR pane contains a color swatch!
>
> I shall do this for all the standard color definitions in leoSettings.leo 
> and in theme files. A color;; abbreviation could be used, but in this case 
> cut/paste will be good enough....
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to