> 2. You can now specify the fonts of various syntax-coloring
> constructs.
>
> You can specify defaults for various tags, and override these defaults
> on a language-by-language basis. For details, 
> see:http://webpages.charter.net/edreamleo/coloring.html#syntax-coloring-s...

My first Leo related Aha: this language-by-language syntax
highlighter, when combined with restructured text, will allow Leo to
do virtually everything that anyone who wants Leo to support rich text
nodes could want. The restructured text colorizer file defines
**bold** as keyword2, and *italics* as keyword4, so to make these
appear in bold and italics respectively you need only change the @font
settings for the relevant keywords. (And once this is done, there will
be no need for text in bold and italics to be a different color from
the body text: the fact that it is in bold or italics will be
sufficient to pick it out. So the view of an rst text file you will
get whilst editing it will be much more similar to the HTML output
that it currently is.)

Having said this I'm struggling to Leo to do what I'd like at the
moment. It looks like you should be able to put the following in an
@font node, and get restructured text bold to appear in bold onscreen:

rest_keyword2_font_size = 16
rest_keyword2_font_family = Bitstream Charter
rest_keyword2_font_slant = roman
rest_keyword2_font_weight = bold

However nothing happens when I do this. The python examples in the
test.leo file work fine for me, so I'm not sure what's gone wrong.

I think that the following should also work, but it's also currently
not doing anything for me:

@color rest_keyword2_color = black

Any advice very much appreciated!

James




-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.


Reply via email to