Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 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

I was just answering a question when I observed the following behavior. I wanted to type something like

wget --bind-address=``ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'` ` URL

completely inside a code tag but it did not work. I tried using double apostrophe and back-slash apostrophe, but still it did not work. Is there any way to use the code formatting quote as such inside a code block?

share|improve this question
up vote 4 down vote accepted

You should be able to use the backslash (\) character before the backtick (`) to escape it code-formatting your text:

Markdown:

<code>
=\`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'\` ` URL
</code>

Rendered:

=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'` ` URL

share|improve this answer
    
Wow! THanks. Never know we could use <code> tag – vpram86 Mar 5 '10 at 8:26

like this?

wget --bind-address=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}' ` URL

with 4 spaces at line start

share|improve this answer

You must log in to answer this question.

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