Closed
Bug 924440
Opened 11 years ago
Closed 11 years ago
Allow syntax highlighting in Bugzilla comments
Categories
(Bugzilla :: User Interface, enhancement)
Bugzilla
User Interface
Tracking
()
RESOLVED
DUPLICATE
of bug 330707
People
(Reporter: miker, Unassigned)
Details
Most bug reporting systems support syntax highlighting of code placed in comment blocks.
Whether we would use <code></code> blocks ''' or whatever, surely it makes sense to add this?
Comment 1•11 years ago
|
||
Hmm, there's bug 358987 but that's specific to attachments. So I guess this makes this bug a new feature request. I'm sure patches to make this or bug 358987 happen are welcome.
Comment 2•11 years ago
|
||
I think what's really needed here is a simple way to format text enclosed in `...` (or whatever else we decide, but this happens to be used on GitHub, so would be easily discoverable).
Lot's and lot's of bug comments mention short pieces of code. Here are 2 examples taken from existing bugs:
"
Every render function starts and ends with the same setup: check if `this.element` exists and if so return `this`.
"
"
The above two lines are repeated a lot as well and would be good to factor out to a method on `JSObject.prototype` like `addGrip: function(grip) { /***/ }`.
"
Turning these `...` strings into elements with a monospace font and a grey background would be a really low hanging fruit that would make a big difference.
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•