mirror of
https://github.com/google/blockly.git
synced 2026-01-13 03:47:08 +01:00
Automatic commit Wed Jan 15 03:00:09 PST 2014
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user