Methods and apparatus for generating an interactive coding example for an
online computer language tutorial are shown. The interactive coding example is
displayed in an electronic document as part of an online computer language tutorial.
An interactive example window is displayed in the electronic document by web browser
software to enable the user to easily view, modify, execute, and debug the example
instructions. The example source code is processed by an example execution engine
in the user's computer.