[Pkg-mozext-commits] [firebug] 01/15: Issue 7679: A preference to enbale/disable the syntax highlighting.
David Prévot
taffit at moszumanska.debian.org
Sat Dec 13 20:08:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit 91483ac2d9308aad4cff12ffc6cfe5338086fa47
Author: Farshid Beheshti <farshid.beheshti at gmail.com>
Date: Mon Oct 13 19:32:38 2014 +0330
Issue 7679: A preference to enbale/disable the syntax highlighting.
---
extension/content/firebug/editor/sourceEditor.js | 10 +++++++---
extension/defaults/preferences/firebug.js | 1 +
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/extension/content/firebug/editor/sourceEditor.js b/extension/content/firebug/editor/sourceEditor.js
index abba40b..ba04a99 100644
--- a/extension/content/firebug/editor/sourceEditor.js
+++ b/extension/content/firebug/editor/sourceEditor.js
@@ -448,9 +448,13 @@ SourceEditor.prototype =
text = text || "";
this.editorObject.setValue(text);
- Dom.addScriptAsync(this.parentNode.ownerDocument,
- mode.src,
- this.onLoadedModeFile.bind(this, mode.name));
+ // See issue #7679.
+ if(Options.get("enableSyntaxHighlight"))
+ {
+ Dom.addScriptAsync(this.parentNode.ownerDocument,
+ mode.src,
+ this.onLoadedModeFile.bind(this, mode.name));
+ }
},
onLoadedModeFile: function(modeName)
diff --git a/extension/defaults/preferences/firebug.js b/extension/defaults/preferences/firebug.js
index 63c1197..25ba2fa 100644
--- a/extension/defaults/preferences/firebug.js
+++ b/extension/defaults/preferences/firebug.js
@@ -108,6 +108,7 @@ pref("extensions.firebug.filterSystemURLs", true);
pref("extensions.firebug.maxScriptLineLength", 10000);
pref("extensions.firebug.breakOnExceptions", false);
pref("extensions.firebug.ignoreCaughtExceptions", false);
+pref("extensions.firebug.enableSyntaxHighlight", true);
// Stack
pref("extensions.firebug.omitObjectPathStack", false);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list