add some directives

This commit is contained in:
Meng Zhuo 2013-05-31 11:06:43 +08:00
parent b2dbd2ac4b
commit b6074fab15

View File

@ -3,9 +3,9 @@
snippet : snippet :
:${1:field name}: ${2:field body} :${1:field name}: ${2:field body}
snippet * snippet *
*${1:Emphasis}* *${1:Emphasis}* ${2}
snippet ** snippet **
**${1:Strong emphasis}** **${1:Strong emphasis}** ${2}
snippet _ snippet _
\`${1:hyperlink-name}\`_ \`${1:hyperlink-name}\`_
.. _\`$1\`: ${2:link-block} .. _\`$1\`: ${2:link-block}
@ -17,12 +17,45 @@ snippet -
${1:Title} ${1:Title}
-----${2:-} -----${2:-}
${3} ${3}
#some directive
snippet img:
.. |${2:alias}| image:: ${1:img}
snippet cont: snippet cont:
.. contents:: .. contents::
${1:content}
snippet code:
.. code:: ${1:type}
${2:write some code}
snippet tip:
.. tip::
${1:my tips}
snippet not:
.. note::
${1:my notes}
snippet war:
.. warning::
${1:attention!}
snippet imp:
.. important::
${1:this is importatnt}
snippet att:
.. attention::
${1:hey!}
snippet dan:
.. danger::
${1:ah!}
snippet err:
.. error::
${1:Error occur}
snippet cau:
.. caution::
${1:Watch out!}
snippet sid:
.. sidebar:: ${1:Title}
# CJK optimize, CJK has no space between charaters # CJK optimize, CJK has no space between charaters
snippet *c snippet *c
\ *${1:Emphasis}*\ \ *${1:Emphasis}*\ ${2}
snippet **c snippet **c
\ **${1:Strong emphasis}**\ \ **${1:Strong emphasis}**\ ${2}