7 * @class Roo.doc.Example
8 * @extends Roo.bootstrap.Component
9 * Example Element class
10 * @cfg {String} lang (phpcode|programlisting) section type.
11 * @cfg {String} code example code
12 * @cfg {String} output The expected output from the code
16 * Create a new Synopsis
17 * @param {Object} config The config object
20 Roo.doc.Example = function(config){
21 Roo.doc.Example.superclass.constructor.call(this, config);
24 Roo.extend(Roo.doc.Example, Roo.bootstrap.Component, {
31 getAutoCreate : function(){
33 // no colour highlighting in here....
42 html : String.format('{0}',this.code).replace(/\n/g, '<br/>')
48 cls : 'panel panel-default',
51 cls : 'panel-heading',