Permalink
Browse files

Issue 2258: Custom console log formatting

  • Loading branch information...
1 parent b2e2658 commit b9364983d072dd86ccf93d6426b3a41f7272f3d6 @janodvarko janodvarko committed Jan 8, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 extension/content/firebug/console.js
@@ -502,7 +502,9 @@ Firebug.ConsolePanel.prototype = extend(Firebug.ActivablePanel,
if (part && typeof(part) == "object")
{
var object = objects[++objIndex];
- if (typeof(object) != "undefined")
+ if (part.type == "%c")
+ row.setAttribute("style", object.toString());
+ else if (typeof(object) != "undefined")
this.appendObject(object, row, part.rep);
else
this.appendObject(part.type, row, FirebugReps.Text);
@@ -968,6 +970,7 @@ function parseFormat(format)
rep = FirebugReps.Number;
break;
case "o":
+ case "c":
rep = null;
break;
}

0 comments on commit b936498

Please sign in to comment.