For the purpose of embedding Felix code in HTML documents, 
I have made a new tool: 

        src/toolsflx_pretty.flx


flx --felix=build.fpc src/tools/flx_pretty.flx --style

Prints the CSS required for the colourisation, in <style> tags.

flx --felix=build.fpc src/tools/flx_pretty.flx --mathjax

prints the Javascript required to get MathJax to format TeX stuff in Felix
in <script> tags.

flx --felix=build.fpc src/tools/flx_pretty.flx filename.flx

Prints colourised HTML to standard output.

So basically, if you concatenate the above and wrap inside:

<html><head></head><body>
STUFF HERE
</body></html>

you should get a pretty version of the Felix code.
Including hyperlinks and mouseovers.

This should be useful for putting code examples in HTML documents
like the Felix-lang.org home page.

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to