Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML presentation slides with Python syntax highlighting

I'd like to create slides for my presentation. My presentation will contain these: slide title, bullet points, code snippets (in a monospace font), some code lines highlighted as bold, Python code snippets (with syntax highlighting).

I need an application or tool which can generate such slides in HTML (or HTML5), so when I open the generated HTML in my web browser, and put the web browser to full screen mode, it will start the slideshow. I prefer writing my presentation as a .txt file with some markup, and then the tool should generate the HTML.

I know about the presentation feature Google Docs, but that doesn't support Python syntax highlighting.

I also know about LaTeX and Beamer, but that would generate PDF instead of HTML (not a big problem), and doesn't have Python syntax highlighting built in.

I'd prefer projecting my presentation using a vanilla Google Chrome or Mozilla Firefox. I don't want to install any presentation software (such as bruce) on the projecting machine.

Is there an alternative?

like image 927
pts Avatar asked Nov 12 '10 10:11

pts


3 Answers

Try one of the following:

  1. Restructured text with S5

    http://meyerweb.com/eric/tools/s5/

    http://docutils.sourceforge.net/docs/user/slide-shows.html

    If you install docutils (snapshot is preferred), you will get rst2s5.py in the tools folder.

  2. Bruce, The Presentation Tool

    http://code.google.com/p/bruce-tpt/

  3. Pandoc: a universal document converter

    http://johnmacfarlane.net/pandoc/

  4. AsciiDoc has an option to generate generate self-contained Slidy HTML

like image 141
bhadra Avatar answered Nov 07 '22 09:11

bhadra


Just recently slippy appeared: edit your presentation as HTML, with Python (and lots of other languages) highlighting.

like image 43
Ned Batchelder Avatar answered Nov 07 '22 08:11

Ned Batchelder


You should definitely take a look at landslide, this is a python app that allows to create really nice looking slides in HTML5 from markdown formatted text, and it supports syntax highlighting. To have a preview of what it can do, just take a look at the sample slideshow generated from the project's README.

like image 2
mdeous Avatar answered Nov 07 '22 09:11

mdeous