Hugo,

If you want to display highlighted Factor code, then you can look at
the changes that I made to Factor's prettyprinter to highlight words
in the help browser. See the "prettyprint.stylesheet" vocab.

If you want to highlight code from arbitrary languages, then you
should look at the "io.styles" vocab, which is used by the help system
for marking-up text that will be displayed on the screen (you can
change the text color, etc.). When Factor's prettyprinter displays
highlighted Factor sourcecode, it does it by using character and
paragraph styles from "io.styles".

-keith

On Tue, Dec 1, 2009 at 5:01 AM, Hugo Schmitt <[email protected]> wrote:
> Hi all,
>
> I'd like to be able to display prettyprinted (highlighted) source code
> on ui.gadgets.editors, but the word used for displaying text,
> ui.text.draw-text, seems to be line-oriented.
> Is there any way to be able to draw highlighted text without touching
> platform-specific code? What would be the general idea here?
>
> Thanks a lot,
> Hugo

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to