Re: My new toy
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Aug 2009 01:39:05 -0700
On Sat, 29 Aug 2009 21:00:42 -0700 (PDT), Andrew Thompson
<andrewthommo@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :
BTW - liked your idea of pulling the code formatter
out of an applet and doing it on the server side. I
had been considering doing similar as the potential
'first use' of active scripting on my own site (which
is otherwise pure HTML).
It works three different ways now:
1. render pre-parsed code in an Applet.
2. macro expansion pass just prior to upload to render pre-parsed code
to HTML in an iframe.
3. macror expansion pass just prior to upload to render pre-parsed
code to inline HTML
I choose the method based on the size of the snippet and the amount of
screen real estate I am willing to devote to it. Applets do big ones.
inline for small ones. iframe for intermediate.
I would have to run the parser on the server too. It could be a
service to provide you coloured program listings in HTML without
having to install the rather complicated JDisplay system. You might
upload a ZIP and pick up a zip of HTML later.
--
Roedy Green Canadian Mind Products
http://mindprod.com
"Simplicity is prerequisite for reliability,"
~ Edsger Wybe Dijkstra (born: 1930-05-11 died: 2002-08-06 at age: 72)
.
- References:
- My new toy
- From: Roedy Green
- Re: My new toy
- From: Andrew Thompson
- Re: My new toy
- From: Roedy Green
- Re: My new toy
- From: Andrew Thompson
- My new toy
- Prev by Date: Re: My new toy
- Next by Date: Re: My new toy
- Previous by thread: Re: My new toy
- Next by thread: Re: My new toy
- Index(es):
Relevant Pages
|