Re: My new toy



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)
.



Relevant Pages

  • Re: How to open the jsp pages by click on the APPLET
    ... I want to know is there is any way to open the new window of jsp ... By this i get only html tags nothing beyond that.That is not my ... requirement.Will give syntax for getting jsp page on applet. ... only load URLs from the same server as the containing page ...
    (comp.lang.java.advocacy)
  • Re: 3 questions
    ... I assume when the password prompt comes up, you type in the new details and ... Once you're connected to the web server - just select the files from your ... Upload the file with the link to the music file and then upload the music file ... Frontpage creates HTML documents, and a few other formats, but mainly html - your ...
    (microsoft.public.frontpage.client)
  • Re: FrontPage, VID, Linux -- problems on Web Site
    ... The HTML is a mess. ... > I'm editing it in Quanta Plus and the line are breaking normally (or maybe ... > When I upload the file back to the server the HTML loses all breaks in the ...
    (alt.os.linux)
  • Re: FrontPage, VID, Linux -- problems on Web Site
    ... The HTML is a mess. ... >> When I upload the file back to the server the HTML loses all breaks in the ... If I edit in Bluefish and upload the line breaks are still there on ...
    (alt.os.linux)
  • Re: How to open the jsp pages by click on the APPLET
    ... I want to know is there is any way to open the new window of jsp ... By this i get only html tags nothing beyond that.That is not my ... requirement.Will give syntax for getting jsp page on applet. ... only load URLs from the same server as the containing page ...
    (comp.lang.java.advocacy)