Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24205
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: color coding of text |
| Organization | Canadian Mind Products |
| Message-ID | <ickhq89ptqj8ubfft2dlqhjbbfa9bs2hv9@4ax.com> (permalink) |
| References | <14p0vs1pebbo1$.p3bnutf2i9u4$.dlg@40tude.net> |
| Date | 2013-05-31 09:42 -0700 |
On Fri, 31 May 2013 10:38:51 -0400, don <thedon@here.com> wrote, quoted or indirectly quoted someone who said : >In Word you can select a color for highlighted text. I'd like to be able to >do this in eclipse or some other java editor. It would allow you to show a >programs structure nicely. Is there such a thing? I have done it two ways: 1. generate simple HTML and have Swing render it. See http://mindprod.com/jgloss/htmlrendering.html I have had very little success rendering "wild" HTML plucked from the web. You can do inline styles, but the markup must be validated and vanilla. 2. I generate binary tokens, one for each string. It includes the text. The type of the token encodes the font size, colours, highlighting etc. Then I use drawString to render this at the lowest level. See http://mindprod.com/products1.html#JDISPLAY -- Roedy Green Canadian Mind Products http://mindprod.com Getting information off the Internet is like taking a drink from a fire hydrant. ~ Mitch Kapor 1950-11-01
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
color coding of text don <thedon@here.com> - 2013-05-31 10:38 -0400
Re: color coding of text Joerg Meier <joergmmeier@arcor.de> - 2013-05-31 17:00 +0200
Re: color coding of text "dstibbe@gmail.com" <dstibbe@gmail.com> - 2013-05-31 08:13 -0700
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-05-31 16:56 +0100
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 18:10 -0400
Re: color coding of text Roedy Green <see_website@mindprod.com.invalid> - 2013-05-31 09:42 -0700
Re: color coding of text FredK <fred.l.kleinschmidt@gmail.com> - 2013-05-31 11:25 -0700
Re: color coding of text Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-05-31 22:19 -0300
Re: color coding of text Lew <lewbloch@gmail.com> - 2013-05-31 11:48 -0700
Re: color coding of text don <thedon@here.com> - 2013-05-31 16:34 -0400
Re: color coding of text Lew <lewbloch@gmail.com> - 2013-05-31 13:43 -0700
Re: color coding of text don <thedon@here.com> - 2013-05-31 19:17 -0400
Re: color coding of text Joerg Meier <joergmmeier@arcor.de> - 2013-06-01 12:01 +0200
Re: color coding of text Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-06-01 09:15 -0300
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 18:25 -0400
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 18:19 -0400
Re: color coding of text Rajiv Gupta <rajiv@invalid.com> - 2013-06-03 22:36 +1000
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-01 09:06 +0100
Re: color coding of text Joerg Meier <joergmmeier@arcor.de> - 2013-06-01 12:02 +0200
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-01 12:28 +0100
Re: color coding of text Martin Gregorie <martin@address-in-sig.invalid> - 2013-06-01 13:00 +0000
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 18:33 -0400
Re: color coding of text Lew <lewbloch@gmail.com> - 2013-06-01 17:26 -0700
Re: color coding of text Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-06-01 22:40 -0300
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 21:52 -0400
Re: color coding of text Robert Klemme <shortcutter@googlemail.com> - 2013-06-01 13:30 +0200
Re: color coding of text Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-06-01 09:30 -0300
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 18:37 -0400
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 08:51 +0100
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-02 09:47 -0400
Re: color coding of text markspace <markspace@nospam.nospam> - 2013-06-02 07:53 -0700
Re: color coding of text Robert Klemme <shortcutter@googlemail.com> - 2013-06-02 17:46 +0200
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-02 12:04 -0400
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-01 13:40 +0100
Re: color coding of text Lars Enderin <lars.enderin@telia.com> - 2013-06-01 20:54 +0200
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-01 20:04 +0100
Re: color coding of text Lars Enderin <lars.enderin@telia.com> - 2013-06-01 21:31 +0200
Re: color coding of text Joerg Meier <joergmmeier@arcor.de> - 2013-06-02 19:51 +0200
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-02 14:11 -0400
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 19:30 +0100
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-01 18:41 -0400
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 09:02 +0100
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-02 09:41 -0400
Re: color coding of text Robert Klemme <shortcutter@googlemail.com> - 2013-06-02 17:47 +0200
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 18:11 +0100
Re: color coding of text Arne Vajhøj <arne@vajhoej.dk> - 2013-06-02 14:09 -0400
Re: color coding of text Lew <lewbloch@gmail.com> - 2013-06-02 11:45 -0700
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 20:07 +0100
Re: color coding of text Lew <lewbloch@gmail.com> - 2013-06-02 12:36 -0700
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 21:24 +0100
Re: color coding of text Lew <lewbloch@gmail.com> - 2013-06-01 19:31 -0700
Re: color coding of text lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-06-02 08:57 +0100
csiph-web