Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

In chatting, I've taken to using bold to format code. This is because it does not stand out very well if the only thing that changes is a fixed-width font. For instance:

Demonstrate bold is better than fixed-width with no background change

But it seems that if CSS were applied to use a fixed width font and change the background color, that would be a better solution. I'm not sure of the entire implications, but here's a test:

With CSS applied for background

share|improve this question
Code appears more bold if it is bolded (**`code`**), and text-shadow: 1px 0 #000 is applied to it: – uınbɐɥs Feb 10 '13 at 23:27
yes please this would be really helpful! – Jack Douglas Mar 6 '13 at 18:13

I have written a UserScript that automatically highlights code in chat messages. Example:

More information and download links can be found here:

Highlight Code in Chat - Highlights <code> elements contained in chat messages.

share|improve this answer
Could you also add* and highlight <pre> as well? – Lorem Ipsum Feb 11 '13 at 3:22
Cool. Having a user script is nice as a prototype to test the idea, but a lot of people use chat without extensions. Something like this that affects the commonly perceived display isn't really a "power user" chat feature, but rather seems it should be built in... – HostileFork Feb 11 '13 at 5:43
@LoremIpsum: Done. – uɐɯsO uɐɥʇɐN Feb 11 '13 at 8:08
@HostileFork: Yes, but the impression I get from the OP is that those who need the feature are the ones who would be able to easily install the UserScript. – uɐɯsO uɐɥʇɐN Feb 11 '13 at 8:09
@GeorgeEdison Thanks, but the <pre> blocks are not highlighted though... – Lorem Ipsum Feb 11 '13 at 15:39
@LoremIpsum: Hmm... I'll fix that shortly. Sorry about that oversight. – uɐɯsO uɐɥʇɐN Feb 11 '13 at 22:43
@LoremIpsum: Sorry for the long delay - I have now updated the script. – uɐɯsO uɐɥʇɐN May 3 '13 at 19:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .