Skip to content

Commit

Permalink
Lots of housekeeping - tabs to spaces, removed inline functions, adde…
Browse files Browse the repository at this point in the history
…d missing semicolons etc.
  • Loading branch information
MikeRatcliffe committed Apr 16, 2011
1 parent 3546672 commit 98bb24b
Show file tree
Hide file tree
Showing 17 changed files with 5,358 additions and 5,305 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "chrome/content/ace"]
path = chrome/content/ace
url = git@github.com:MikeRatcliffe/ace.git
path = chrome/content/ace
url = git@github.com:MikeRatcliffe/ace.git
10 changes: 4 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Acebug Firebug Extension
========================

Acebug is a Firebug Extension that brings the power of the Ace Editor to Firebug. Ace is a standalone code editor written in JavaScript and is embedded into Firebug to bring syntax highlighting to the JavaScript Console. In the future we plan to add various options including:
Acebug is a Firebug Extension that brings the power of the Ace Editor to Firebug. Ace is a standalone code editor written in JavaScript and is embedded into Firebug to bring syntax highlighting to the JavaScript Console.

In the future we plan to add various options including:

* Integration with script panel (including breakpoints, debugging etc.)
* Autocompletion
* Improved context menu items
* Internationalization
* Options - Choose keyboard bindings (vim, emacs etc.), choose color scheme, etc., etc.
* Automatic updates
* More translations .. volunteers are always welcome

Getting the Source
==================
Expand Down
4 changes: 2 additions & 2 deletions chrome.manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
content acebug chrome/content/
content acebug chrome/content/
locale acebug de chrome/locale/de/
locale acebug en-US chrome/locale/en-US/
locale acebug es chrome/locale/es/
Expand All @@ -7,4 +7,4 @@ locale acebug nl chrome/locale/nl/
locale acebug sr chrome/locale/sr/
locale acebug sv-SE chrome/locale/sv-SE/
locale acebug zh-CN chrome/locale/zh-CN/
overlay chrome://firebug/content/firebugOverlay.xul chrome://acebug/content/firebugOverlay.xul
overlay chrome://firebug/content/firebugOverlay.xul chrome://acebug/content/firebugOverlay.xul
92 changes: 49 additions & 43 deletions chrome/content/__devel__.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,55 @@

// not needed in release
var __AceBugDevel__ = {
loadScript: function(href, index){
var s=document.createElementNS('http://www.w3.org/1999/xhtml', "script")
s.type = "text/javascript;version=1.8";
s.src = href
s.index = index
s.onload = function(e){__AceBugDevel__.onLoad(e, this)}
document.documentElement.appendChild(s)
},

sourceList: [
"chrome://acebug/content/aceEditor.js",
"chrome://acebug/content/autocompleter.js",
"chrome://acebug/content/resource.js"
],

doReload: function(){
FBL.ns=function(a){a()}
// clean up
try{Firebug.Ace.win1.editor.autocompleteCommandsAdded = false}catch(e){}
try{Firebug.Ace.win2.editor.autocompleteCommandsAdded = false}catch(e){}

Firebug.unregisterModule(Firebug.Ace)
Firebug.unregisterPanel(Firebug.ResourcePanel)
this.loadedScriptsCount = 0
for(var i in this.sourceList){
this.loadScript(this.sourceList[i],i)
}

},
onLoad: function(){
this.loadedScriptsCount++;
if(this.loadedScriptsCount == this.sourceList.length){
Firebug.Ace.initializeUI()

}
}
}
loadScript: function(href, index) {
var s = document.createElementNS('http://www.w3.org/1999/xhtml', "script");
s.type = "text/javascript;version=1.8";
s.src = href;
s.index = index;
s.onload = function(e) {
__AceBugDevel__.onLoad(e, this);
};
document.documentElement.appendChild(s);
},

sourceList: [
"chrome://acebug/content/aceEditor.js",
"chrome://acebug/content/autocompleter.js",
"chrome://acebug/content/resource.js"
],

if(!document.getElementById('__AceBugDevel__')){
let t=document.createElement('toolbarbutton')
document.getElementById("status-bar").appendChild(t)
t.setAttribute('oncommand','__AceBugDevel__.doReload()')
t.id = '__AceBugDevel__'
t.label='AceBugDevel'
doReload: function() {
FBL.ns = function(a) {
a();
};
// clean up
try{
Firebug.Ace.win1.editor.autocompleteCommandsAdded = false;
} catch(e) {}
try{
Firebug.Ace.win2.editor.autocompleteCommandsAdded = false;
} catch(e) {}

Firebug.unregisterModule(Firebug.Ace);
Firebug.unregisterPanel(Firebug.ResourcePanel);
this.loadedScriptsCount = 0;
for(var i in this.sourceList) {
this.loadScript(this.sourceList[i], i);
}
},

onLoad: function() {
this.loadedScriptsCount++;
if (this.loadedScriptsCount == this.sourceList.length) {
Firebug.Ace.initializeUI();
}
}
};

if (!document.getElementById('__AceBugDevel__')) {
let t = document.createElement('toolbarbutton');
document.getElementById("status-bar").appendChild(t);
t.setAttribute('oncommand','__AceBugDevel__.doReload()');
t.id = '__AceBugDevel__';
t.label = 'AceBugDevel';
}
Loading

0 comments on commit 98bb24b

Please sign in to comment.