Mercurial > repos > tabletprog
comparison editor.js @ 105:35006a6e1c47
Fixed more editor coderot and improved syntax/selection coloring a bit.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 11 Apr 2013 09:16:35 -0700 |
parents | 648659961e0e |
children | d715fb3c39ab |
comparison
equal
deleted
inserted
replaced
104:648659961e0e | 105:35006a6e1c47 |
---|---|
95 if(parts[i]) { | 95 if(parts[i]) { |
96 base.appendChild(newEl('span', { | 96 base.appendChild(newEl('span', { |
97 textContent: parts[i] + (this.receiver && parts.length == 1 ? '' : ':'), | 97 textContent: parts[i] + (this.receiver && parts.length == 1 ? '' : ':'), |
98 className: 'funpart', | 98 className: 'funpart', |
99 onclick: function(event) { | 99 onclick: function(event) { |
100 mainModule.funClick(this, astNode, event); | 100 main_module.funClick(this, astNode, event); |
101 }})); | 101 }})); |
102 if (this.args[i]) { | 102 if (this.args[i]) { |
103 this.args[i].toHTML(base); | 103 this.args[i].toHTML(base); |
104 } | 104 } |
105 } | 105 } |
114 var astNode = this; | 114 var astNode = this; |
115 node.appendChild(newEl('span', { | 115 node.appendChild(newEl('span', { |
116 className: 'symbol', | 116 className: 'symbol', |
117 textContent: this.name, | 117 textContent: this.name, |
118 onclick: function(event) { | 118 onclick: function(event) { |
119 mainModule.symbolClick(this, astNode, event); | 119 main_module.symbolClick(this, astNode, event); |
120 } | 120 } |
121 })); | 121 })); |
122 } | 122 } |