2011-06-20 14:40:28 -03:00
|
|
|
# rst
|
|
|
|
|
|
|
|
snippet :
|
2013-07-25 17:17:32 -04:00
|
|
|
:${1:field name}: ${0:field body}
|
2011-06-20 14:40:28 -03:00
|
|
|
snippet *
|
2013-07-25 17:17:32 -04:00
|
|
|
*${1:Emphasis}* ${0}
|
2011-06-20 14:40:28 -03:00
|
|
|
snippet **
|
2013-07-25 17:17:32 -04:00
|
|
|
**${1:Strong emphasis}** ${0}
|
2011-06-20 14:40:28 -03:00
|
|
|
snippet _
|
2012-11-11 16:24:36 +07:00
|
|
|
\`${1:hyperlink-name}\`_
|
2013-07-25 17:17:32 -04:00
|
|
|
.. _\`$1\`: ${0:link-block}
|
2011-06-20 14:40:28 -03:00
|
|
|
snippet =
|
|
|
|
${1:Title}
|
|
|
|
=====${2:=}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 14:40:28 -03:00
|
|
|
snippet -
|
|
|
|
${1:Title}
|
|
|
|
-----${2:-}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-05-31 11:06:43 +08:00
|
|
|
#some directive
|
|
|
|
snippet img:
|
2013-07-25 17:17:32 -04:00
|
|
|
.. |${0:alias}| image:: ${1:img}
|
2013-05-31 11:18:29 +08:00
|
|
|
snippet fig:
|
|
|
|
.. figure:: ${1:img}
|
2013-07-25 17:17:32 -04:00
|
|
|
:alt: ${0:alter text}
|
2013-05-31 11:18:29 +08:00
|
|
|
|
|
|
|
$2
|
2011-06-20 14:40:28 -03:00
|
|
|
snippet cont:
|
|
|
|
.. contents::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:content}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet code:
|
|
|
|
.. code:: ${1:type}
|
2013-06-20 14:39:31 -07:00
|
|
|
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:write some code}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet tip:
|
|
|
|
.. tip::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:my tips}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet not:
|
|
|
|
.. note::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:my notes}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet war:
|
|
|
|
.. warning::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:attention!}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet imp:
|
|
|
|
.. important::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:this is importatnt}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet att:
|
|
|
|
.. attention::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:hey!}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet dan:
|
|
|
|
.. danger::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:ah!}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet err:
|
|
|
|
.. error::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:Error occur}
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet cau:
|
|
|
|
.. caution::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:Watch out!}
|
2015-08-04 22:24:24 +09:00
|
|
|
#Sphinx only
|
2013-05-31 11:06:43 +08:00
|
|
|
snippet sid:
|
|
|
|
.. sidebar:: ${1:Title}
|
2013-06-20 14:39:31 -07:00
|
|
|
|
2015-08-04 22:30:38 +09:00
|
|
|
${0}
|
|
|
|
snippet tod:
|
|
|
|
.. todo::
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2015-08-04 22:40:27 +09:00
|
|
|
snippet lis:
|
2015-08-04 22:37:56 +09:00
|
|
|
.. list-table:: ${0:Title}
|
|
|
|
:header-rows: 1
|
|
|
|
:stub-columns: 1
|
|
|
|
|
2015-08-04 22:40:27 +09:00
|
|
|
* - x1,y1
|
|
|
|
- x2,y1
|
|
|
|
- x3,y1
|
|
|
|
* - x1,y2
|
|
|
|
- x2,y2
|
|
|
|
- x3,y2
|
|
|
|
* - x1,y3
|
|
|
|
- x2,y3
|
|
|
|
- x3,y3
|
|
|
|
|
|
|
|
snippet toc:
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
2015-08-04 22:37:56 +09:00
|
|
|
|
2015-08-04 22:40:27 +09:00
|
|
|
${0}
|
2015-08-04 22:43:52 +09:00
|
|
|
snippet dow:
|
|
|
|
:download:`${0:text} <${1:path}>`
|
2015-08-04 22:45:32 +09:00
|
|
|
snippet ref:
|
|
|
|
:ref:`${0:text} <${1:path}>`
|
2015-08-04 22:46:18 +09:00
|
|
|
snippet doc:
|
|
|
|
:doc:`${0:text} <${1:path}>`
|
2013-05-31 09:45:28 +08:00
|
|
|
# CJK optimize, CJK has no space between charaters
|
|
|
|
snippet *c
|
2013-07-25 17:17:32 -04:00
|
|
|
\ *${1:Emphasis}*\ ${0}
|
2013-05-31 09:45:28 +08:00
|
|
|
snippet **c
|
2013-07-25 17:17:32 -04:00
|
|
|
\ **${1:Strong emphasis}**\ ${0}
|
2013-05-31 09:45:28 +08:00
|
|
|
|