Created
November 30, 2017 11:01
-
-
Save oliverthiele/43b098c44b1b6e29b4f2fed6da1cf486 to your computer and use it in GitHub Desktop.
PhpStorm Live Templates for *.rst files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<templateSet group="RST"> | |
<template name="rstRefCoreApi" value=":ref:`Core Api Reference <t3coreapi:$SECTION$>`" description="Core Api Reference" toReformat="false" toShortenFQNames="true"> | |
<variable name="SECTION" expression="" defaultValue="start" alwaysStopAt="true" /> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstCodeBlock" value=".. code-block:: $LANGUAGE$ $END$" description="Code Block" toReformat="false" toShortenFQNames="true"> | |
<variable name="LANGUAGE" expression="" defaultValue="php" alwaysStopAt="true" /> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstFile" value=":file:`$SELECTION$`" description="Filename or Directory" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstFigure" value=".. figure:: $PATH$ :alt: $ALT$ :align: center :class: with-border Figure $ID$: $FIGCAPTION$ $END$" description="Figure" toReformat="false" toShortenFQNames="true"> | |
<variable name="PATH" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="ALT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="ID" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="FIGCAPTION" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstPhp" value=":php:`$SELECTION$`" description="PHP String" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstBoxNote" value=".. note:: $END$" description="Note" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstCodeBlockFull" value=".. code-block:: $LANGUAGE$ :caption: $FILENAME$ :name: $NAME$ $END$" description="Code Block" toReformat="false" toShortenFQNames="true"> | |
<variable name="LANGUAGE" expression="" defaultValue="php" alwaysStopAt="true" /> | |
<variable name="FILENAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="NAME" expression="lowercaseAndDash(String)" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstRefTca" value=":ref:`TCA Reference <t3tca:$SECTION$>` " description="TCA Reference" toReformat="false" toShortenFQNames="true"> | |
<variable name="SECTION" expression="" defaultValue="start" alwaysStopAt="true" /> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstTocTree" value=".. toctree:: :maxdepth: 2 $END$" description="rstTocTree" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstBoxTip" value=".. tip:: $END$" description="Tip" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstBoxSidebar" value=".. sidebar:: $HEADER$ $END$" description="Sidebar" toReformat="false" toShortenFQNames="true"> | |
<variable name="HEADER" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstBoxWarning" value=".. warning:: $END$" description="Warning" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstHtml" value=":typoscript:`$SELECTION$`" description="HTML Code" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstAspect" value=":aspect:`$SELECTION$`" description="Aspect" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
<template name="rstJs" value=":js:`$SELECTION$`" description="Js" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="Bash" value="false" /> | |
<option name="CSS" value="false" /> | |
<option name="CUCUMBER_FEATURE_FILE" value="false" /> | |
<option name="CoffeeScript" value="false" /> | |
<option name="HAML" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="JAVA_SCRIPT" value="false" /> | |
<option name="JSON" value="false" /> | |
<option name="OTHER" value="true" /> | |
<option name="PHP" value="false" /> | |
<option name="SQL" value="false" /> | |
<option name="Twig" value="false" /> | |
<option name="TypeScript" value="false" /> | |
<option name="Vue" value="false" /> | |
<option name="XML" value="false" /> | |
</context> | |
</template> | |
</templateSet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save this file in ~/Library/Preferences/PhpStorm2017.3/settingsRepository/repository/templates/