[plt-scheme] export code (with syntax and stuff) to HTML

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Thu Dec 3 14:01:39 EST 2009

Yeah. I think that only works within a Scribble document, though.

Is it as simple as reading in a BeginnerStudent file, putting #lang
scribble at the beginning, wrapping it in (scheme-block0 ...) and
outputting the result to an HTML file? Of course, this would rely on
the Scribble CSS and would add links for all the functions.

I guess I just want something that would put everything in a
pre-formatted block and attach divs to get the right syntax coloring.

If such a thing doesn't exist, I don't mind trying to figure out how to do it.


On Thu, Dec 3, 2009 at 11:49 AM, Stephen De Gabrielle
<spdegabrielle at gmail.com> wrote:
> Hi,
> I think you afiter Section 4.2.1 Typesetting Code
> In the scribble docs
> http://docs.plt-scheme.org/scribble/scribble_manual_code.html
> Stephen
> On Thu, Dec 3, 2009 at 2:18 PM, Todd O'Bryan <toddobryan at gmail.com> wrote:
>> I know this must be possible, since Scribble does it...
>> If I have a .ss/.scm file and would like to export it to HTML with the
>> syntax coloring, etc., what's the easiest way to do that?
>> I'm envisioning a system where students could upload assignments and
>> then we could go over them in class by clicking on a link that would
>> display a student's file for group critique. So, step 1 = change
>> student file into web page.
>> Todd
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.