Add ace editor experiment.
Created attachment 190981 [details] Patch
Created attachment 190982 [details] Patch
Comment on attachment 190982 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=190982&action=review Could you share the stats on how much bigger the front-end footprint will be? In absolute numbers as well as percentage. Raw, minified and zipped (chromium resources are zipped). > Source/WebCore/inspector/front-end/AceTextEditor.js:48 > + this.element.style.height = "100%"; Please use CSS for styling. > Source/WebCore/inspector/front-end/AceTextEditor.js:84 > + case "text/html": this._aceEditor.getSession().setMode("ace/mode/html"); break; Do not indent case from switch.
Created attachment 190985 [details] Patch
Some stats on Ace disk usage: 1. Raw folder size of Ace files in this patch is 664Kb 2. If I were to put minified version of ace files, it would be 376Kb I estimated gzip size of devtools_resources.pak file. Without this patch: 824Kb With this patch: 956Kb So it brings in 132Kb of overhead.
Created attachment 191174 [details] Patch
Comment on attachment 191174 [details] Patch Please make sure you include original BSD LICENSE file.
Created attachment 191176 [details] Patch
Comment on attachment 191176 [details] Patch Clearing flags on attachment: 191176 Committed r144615: <http://trac.webkit.org/changeset/144615>
All reviewed patches have been landed. Closing bug.
Hi, I'm the author of ace and very excited to see it landing in Chrome. I have noticed a few glitches with this patch: - the breakpoint context menu does not work - I don't get syntax highlighting for css files If you prefer I can create separate issues for this.
Hi Fabian, First of all, thank you for your great project! We are aware of the bugs you've mentioned. We've added Ace editor as an experiment and it's not fully embedded into the devtools (that's the reason for the glitches you've mentioned). There's no decision yet if we would invest efforts in its adoption and use it as our primary code editor.