<div dir="ltr">This conversation / specific post might also be helpful: <div>Evaluating code written in non-SEXP language -- <a href="http://lists.racket-lang.org/users/archive/2013-September/059449.html" target="_blank">http://lists.racket-lang.org/users/archive/2013-September/059449.html</a><div>
<br></div><div>I've used a slightly modified version of Matthew Flatt's code from there to directly render Scribble from a string or port to HTML, just swap out the <font face="courier new, monospace">#lang</font> for <font face="courier new, monospace">scribble/html</font>. From there, you should be able to use <font face="courier new, monospace">read-html-as-xml</font> to get an xexpr. </div>
<div><br></div><div>I can't speak to the relative speed of doing it this way though.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 30, 2013 at 3:54 PM, Stephen Chang <span dir="ltr"><<a href="mailto:stchang@ccs.neu.edu" target="_blank">stchang@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi users,<br>
<br>
Now that Racket has a state-of-the-art package system and a<br>
smashing-success conference, I think the obvious missing element in<br>
the path to world domination is our very own pastebin, so I made one<br>
during the hackathon.<br>
<br>
It renders a paste with scribble, to get syntax coloring and doc linking.<br>
<br>
(Preview here: <a href="http://pasterack.org" target="_blank">pasterack.org</a>, <a href="http://www.pasterack.org/pastes/6444" target="_blank">http://www.pasterack.org/pastes/6444</a>)<br>
<br>
However, it is currently very slow because it naively writes a<br>
scribble file to disk and then compiles it with a command line call,<br>
because I couldnt figure out how to directly convert a scribble block<br>
to html or xexpr. Does anyone know if this is this possible?<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</blockquote></div><br></div>