I've said it before and i'll say it again, there are few better ways to motivate a young kid to learn to program than the promise of being able to create their games. Here's a python book written with the same idea in mind:

Does someone know of any (preferably easy) ways one might transform the code content to be syntax-highlighted? I'd like to carry an offline version on a small device that doesn't have an editor on it so copy-pasting the code to an editor doesn't seem like such a good option.

Al knows script-fu (he uses something like AHK), and uses a search & replace tool with regex capabilities. With that in mind, the main thing that I think would be hardest in the conversion would be preserving the line numbers, since he often just shows little clips of code from the middle but uses the same line numbers as from the source code. i.e. he'll show a snippet of just lines 9 and 10 but I think GeSHI would just automatically label them 1 and 2.

Is this something other than the GIMP-related thing? Or perhaps some other kind of meaning altogether?

...the main thing that I think would be hardest in the conversion would be preserving the line numbers, since he often just shows little clips of code from the middle but uses the same line numbers as from the source code. i.e. he'll show a snippet of just lines 9 and 10 but I think GeSHI would just automatically label them 1 and 2.

I know this is an old thread but that book looks awesome, even for non-10 year olds, and now there's a sequel that delves more into pygame. Being able to dive right into small real-world applications is a great motivator.

I was considering using this book myself except that it is using Python 3 which is not the "status quo" yet according to python.org, and Python 2 seems to be used for any program I've seen that uses Python as its scripting language (Calibre, Plex, etc.). However that should give the book some nice longevity.

I know this is an old thread but that book looks awesome, even for non-10 year olds, and now there's a sequel that delves more into pygame. Being able to dive right into small real-world applications is a great motivator.

I was considering using this book myself except that it is using Python 3 which is not the "status quo" yet according to python.org, and Python 2 seems to be used for any program I've seen that uses Python as its scripting language (Calibre, Plex, etc.). However that should give the book some nice longevity.

If you're trying to learn, I recommend Hello World! Computer Programming for Kids and other Beginners by Warren D. Sande and Carter Sande, and The Quick Python Book by Vernon L. Ceder. I used the Hello World! book for my Brother-in-Law when he was thinking of getting into programming, and it worked wonders. He's on to more advanced things now, but that grounding in Python helped him prepare for his college classes. It also delves into pygame, so you might want to look into it. The other is just a really good reference.