I've been playing with iBooks Author all morning and I haven't had any luck embedding code snippets. Does anyone else have any ideas?
A few things I've tried:
- A custom widget. This won't work, because widgets just have image previews and have to be tapped to be read. I'll use these for runnable examples of code (at least for CoffeeScript/JavaScript/ClojureScript), but not for formatting code within the flow of text
- Text boxes - Getting these to appear similarly in portrait & landscape orientation has been painful so far.
- A paragraph style. It looks like this is where I'm going to start next. With the inspector, "Text -> More" seems to hide what I want in terms of background shading and disabling hyphenation.
I'm copy-pasting syntax-highlighted code from textmate using the copy as RTF bundle, but iBooks Author isn't respecting the colors. Any ideas on syntax highlighting?




