4

Possible Duplicate:
How to use formatting in comments?

Its being more than a month since I started using Stack Overflow, and yet I haven't figured out how to highlight words on the comments that I make on the questions. Can somebody tell me how to do that?

  • What do you mean? – Adam Lear Apr 14 '11 at 17:03
  • I mean in this comments that i am writing right here. How do i highlight any of this words i am just typing? – sfrj Apr 14 '11 at 17:07
  • Do you mean like this or like this or like this? – Peter Olson Apr 14 '11 at 17:11
  • Or maybe like this? – adamjford Apr 14 '11 at 17:13
  • Yes that is what i mean :) how can i do that? – sfrj Apr 14 '11 at 17:15
11

Do you mean highlighting like this?

If so, use the backtick - enclose the desired words, thus `word` becomes word.

You can also use 3 back ticks to enclose your whole code

#This is some code 
df=df['data'] + df['set']
3

To highlight words like this, use backticks: `like this`

To italicize words, use asterisks: *like this*

To bold words, use double asterisks: **like this**

  • Testing if it works – sfrj Apr 14 '11 at 19:39
  • Did it work i cant really see? – sfrj Apr 14 '11 at 19:39
  • Oh yes it did :) sorry Thank you very much now i know. – sfrj Apr 14 '11 at 19:40
  • backticks are not for highlighting words. They are meant for code formatting, and IMO using them to highlight words is wrong. – Shadow The Princess Wizard Sep 15 '17 at 8:21
1

Syntax highlighting is not applied to code blocks in comments, so there's no way to do this at this time.

  • good to know that :) But i dont need to highlight code, just sencences or words like this that i am writing right now. – sfrj Apr 14 '11 at 17:09
  • How is syntax highlighting done in an answer(it is not there in the formatting help section of help center) – Mathsman 100 May 8 '15 at 15:32

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