For examples you can use \qml and \endqml or \code and \endcode and put the example code between those tags.