Larry Garfield wrote: > Hi all. > > I have a busy conference season coming up, and will be giving a number of > presentations that involve code, specifically PHP. I am going to want to put > code onto slides in OpenOffice (3.1 specifically, using Kubuntu 9.10), but to > date I've never figured out a good way to do that. Anyone know of a good way > to do syntax-highlighted code in OOo? > > Things I've tried in the past: > > 1) Just throw code onto the slide, no highlighting. This works, but is ugly > and harder to read or demonstrate what I am doing. It's my usual fallback. > > 2) Screen-shot from a web page that uses syntax highlighting, such as PHP's > built-in highlighting. Very difficult to prepare since the sizing is usually > all off. Ugly. Very difficult to edit and change because the screen caps have > to be regenerated. And PHP's default coloring for highlighting frequently > clashes with the slides and looks godawful on a projector. (I once ended up > with blue text on a black slide. That was a major fail.) > > 3) Jump out of the slides into an IDE. Works, but totally breaks the flow of > the presentation. The IDE usually also has text that's way too small, and I > have to reconfigure it into a "presentation mode", often on the fly. It also > makes discrete snippets harder to show, since there's still the entire rest of > the IDE there. > > I don't like any of these options. :-) I don't know what the alternative is, > though. Ideally I'd love to have a custom text region or format or something > that is "take this and highlight it properly", but I don't know if such a > plugin exists. > > I could be talked into using KPresenter / KOffice instead if that would be > easier, but as I am on Linux I have no access to KeyNote or PowerPoint. > > Any suggestions? > > --Larry Garfield Quick idea. I use geshi, or you can use highlight string. You can host the code on a local webserver and include it in a floating frame in impress. This will give a live view, or you can generate an HTML file and have that as the source of your floating frame. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php