async function generateCode() {
                    /* 
                    Code
                    */
                    let html = ''
                    let paragraph
                    let key = 'auto-generated-paragraph-' + autoGeneratedParagraphIndex
                    if(appSchemaDocument === undefined || appSchemaDocument.editors === undefined || appSchemaDocument.editors.code !== true) {
                        return ''
                    }
                    paragraph = {
                        style: "Title",
                        text: "" + appSchemaDocument.type + " Code"
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++
                    paragraph = {
                        style: "Text",
                        text: "This section explores " + appSchemaDocument.type + " Node Code."
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++

                    if(appSchemaDocument.initialValues === undefined || appSchemaDocument.initialValues.code === undefined) {
                        return ''
                    }

                    paragraph = {
                        style: "Subtitle",
                        text: "Initial Value"
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++
                    paragraph = {
                        style: "Text",
                        text: "The initial value for " + appSchemaDocument.type + " Code is:"
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++

                    paragraph = {
                        style: "Javascript",
                        text: JSON.stringify(appSchemaDocument.initialValues.code, undefined, 4)
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++

                    paragraph = {
                        style: "Subtitle",
                        text: "Examples"
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++
                    paragraph = {
                        style: "Text",
                        text: "This is a list of examples used on the " + appSchemaDocument.type + " code, collected from this workspace."
                    }
                    html = html + await renderParagraph(paragraph, key)
                    autoGeneratedParagraphIndex++
                    /*
                    Here we will scan the whole workspace, first looking for nodes of the same type,
                    and after that, analysing their code in order to extract examples to show.
                    */
                    /* First Step: get an array of all the nodes in the workspace of this type */
                    let rootNodes = [] //ED.designSpace.workspace.workspaceNode.rootNodes
                    let allNodesFound = []
                    for(let i = 0; i < rootNodes.length; i++) {
                        let rootNode = rootNodes[i]
                        if(rootNode !== null) {
                            let nodeArray = ED.utilities.nodeBranchToArray(rootNode, appSchemaDocument.type)
                            allNodesFound = allNodesFound.concat(nodeArray)
                        }
                    }
                    /* 
                    Second Step: create a map with all the code examples used at this node type,
                    without repeating them.
                    */
                    let codeMap = new Map()
                    for(let i = 0; i < allNodesFound.length; i++) {
                        let node = allNodesFound[i]
                        codeMap.set(node.code, node.code)
                    }
                    /* Third Step: we will display the list of properties and the sample values */
                    let exampleCounter = 1
                    for(let e of codeMap.entries()) {
                        html = html + await displayProperty(e[1])
                    }
                    return html
                    //codeMap.forEach(displayProperty)

                    async function displayProperty(code) {
                        if(exampleCounter > 10) {
                            return ''
                        }
                        let pHtml = '<button id="docs-code-example-' + exampleCounter + '" type="button" class="docs-collapsible-element">' + 'Example #' + exampleCounter + '</button>'
                        pHtml = pHtml + '<div class="docs-collapsible-code-content">'
                        exampleCounter++
                        paragraph = {
                            style: "Javascript",
                            text: code
                        }
                        pHtml = pHtml + await renderParagraph(paragraph, key)
                        autoGeneratedParagraphIndex++

                        return pHtml + '</div>'
                    }
                }
@returns {Promise<string>} generated code HTML