diff --git a/apps/blockfactory/index.html b/apps/blockfactory/index.html index 077ad3ebe..a69551f73 100644 --- a/apps/blockfactory/index.html +++ b/apps/blockfactory/index.html @@ -98,6 +98,7 @@ JavaScript Python + Dart diff --git a/apps/code/code.js b/apps/code/code.js index 07238ce79..488990650 100644 --- a/apps/code/code.js +++ b/apps/code/code.js @@ -41,7 +41,7 @@ var Code = {}; * List of tab names. * @private */ -Code.TABS_ = ['blocks', 'javascript', 'python', 'xml']; +Code.TABS_ = ['blocks', 'javascript', 'python', 'dart', 'xml']; Code.selected = 'blocks'; @@ -116,6 +116,14 @@ Code.renderContent = function() { code = prettyPrintOne(code, 'py'); content.innerHTML = code; } + } else if (content.id == 'content_dart') { + code = Blockly.Dart.workspaceToCode(); + content.textContent = code; + if (typeof prettyPrintOne == 'function') { + code = content.innerHTML; + code = prettyPrintOne(code, 'dart'); + content.innerHTML = code; + } } }; diff --git a/apps/code/generated/af.js b/apps/code/generated/af.js index 6ac2acb6d..8bd9f487c 100644 --- a/apps/code/generated/af.js +++ b/apps/code/generated/af.js @@ -41,7 +41,7 @@ codepage.messages = function(opt_data, opt_ignored, opt_ijData) { codepage.start = function(opt_data, opt_ignored, opt_ijData) { - return codepage.messages(null, null, opt_ijData) + ' +