|
How blogme3 htmlizes ascii files
Practically all the HTML files at http://angg.twu.net/ are
generated by blogme3. The trickiest part of blogme3
is the code that htmlizes ascii code with elisp hyperlinks and achors,
like this:
Note that most sexp hyperlinks get two links: one at the function
name, pointing to help about that function, and one at the last two
characters, pointing to the target of the sexp hyperlink. Note also
that URLs are htmlized as links as expected, that some non-obvious
shell constructs are hyperlinked, and that the glyphs *«» are
rendered as they appear in Emacs with eev, but in anchors the middle
part becomes green.
The function that does most of the work here is htmlizeline ,
that has three different implementations:
|