On Sat, Jan 5, 2013 at 11:39 PM, Hongye <lhy.hbg@gmail.com> wrote:
I want to use code role inline and the result should be:

`this is cool`_

I write like this :code:``this is cool`_`, but there was
error in it. And :code:`\`this is coll\`_`, produce \`this is coll\`_

Could someone know how should I do? Thanks.

As Günter stated, the Docutils reST parser doesn't support nested inline markup, but there is a workaround with substitutions:

"""
Hey, |this is cool|_.

.. |this is cool| replace:: ``this is cool``
.. _this is cool: http://example.org
"""

There are two parts: the substitution itself, and the reference. For more, see 
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#substitution-references

--
David Goodger <http://python.net/~goodger>