mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
* Start again the textmate snippet importations, with better
textmate_import.rb and yasnippet.el
This commit is contained in:
parent
6b07c4b1d6
commit
5d9f7fb6b4
@ -1 +0,0 @@
|
||||
text-mode
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Command — \command{…}
|
||||
# binding: "^E"
|
||||
# --
|
||||
\\${1:text${2:bf}}{`yas/selected-text`}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: figure
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Figure
|
||||
# --
|
||||
${1:Figure}~\ref{${2:fig:}}$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: listing
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Listing
|
||||
# --
|
||||
${1:Listing}~\ref{${2:lst:}}$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: page
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Page
|
||||
# --
|
||||
${1:page}~\pageref{$2}$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: section
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Section
|
||||
# --
|
||||
${1:Section}~\ref{${2:sec:}}$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: table
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Table
|
||||
# --
|
||||
${1:Table}~\ref{${2:tab:}}$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Beamer Overlay Specification
|
||||
# binding: "^<"
|
||||
# --
|
||||
<${1:+-}>
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: begin
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: \begin{}…\end{}
|
||||
# --
|
||||
\\begin{${1:env}}
|
||||
${1/(enumerate|itemize|list)|(description)|.*/(?1:\item )(?2:\item)/}$0
|
||||
\\end{${1:env}}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: desc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Description
|
||||
# --
|
||||
\\begin{description}
|
||||
\item[$1] $0
|
||||
\\end{description}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: enum
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Enumerate
|
||||
# --
|
||||
\\begin{enumerate}
|
||||
\item $0
|
||||
\\end{enumerate}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: itd
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: \item[description]
|
||||
# --
|
||||
\\item[${1:description}] ${0:item}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: item
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Itemize
|
||||
# --
|
||||
\\begin{itemize}
|
||||
\item $0
|
||||
\\end{itemize}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Itemize Lines in Selection
|
||||
# binding: "^L"
|
||||
# --
|
||||
\begin{${1:itemize}}
|
||||
${TM_SELECTED_TEXT/^(([^\\]*):\s*)?(.+)$/\n\t\item(?1: [ $2 ]) $3/g}
|
||||
\end{${1:itemize}}
|
@ -1,10 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ali
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Align(ed)
|
||||
# --
|
||||
\begin{align`echo $TM_SCOPE|grep math|
|
||||
sed -e 's/.*math.*/ed/'`}
|
||||
$0
|
||||
\end{align`echo $TM_SCOPE|grep math|
|
||||
sed -e 's/.*math.*/ed/'`}
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: cas
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Cases
|
||||
# --
|
||||
\begin{cases}
|
||||
${1:equation}, &\text{ if }${2:case}\\\\
|
||||
$0
|
||||
\end{cases}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: eq
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Equation
|
||||
# --
|
||||
\begin{equation}
|
||||
$0
|
||||
\end{equation}
|
@ -1,10 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: gat
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Gather(ed)
|
||||
# --
|
||||
\begin{gather`echo $TM_SCOPE|grep math|
|
||||
sed -e 's/.*math.*/ed/'`}
|
||||
$0
|
||||
\end{gather`echo $TM_SCOPE|grep math|
|
||||
sed -e 's/.*math.*/ed/'`}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: mat
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Matrix
|
||||
# --
|
||||
\begin{${1:p/b/v/V/B/small}matrix}
|
||||
$0
|
||||
\end{${1:p/b/v/V/B/small}matrix}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: spl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Split
|
||||
# --
|
||||
\begin{split}
|
||||
$0
|
||||
\end{split}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Unnumbered Equation
|
||||
# binding: "^["
|
||||
# --
|
||||
\\[
|
||||
$0
|
||||
\\]
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: cha
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Chapter
|
||||
# --
|
||||
\chapter{${1:chapter name}} % (fold)
|
||||
\label{cha:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% chapter $2 (end)
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: par
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Paragraph
|
||||
# --
|
||||
\paragraph{${1:paragraph name}} % (fold)
|
||||
\label{par:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% paragraph $2 (end)
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: part
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Part
|
||||
# --
|
||||
\part{${1:part name}} % (fold)
|
||||
\label{prt:${2:${1/(\w+)|\W+/(?1:\L$0:_)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% part $2 (end)
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: subp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Sub Paragraph
|
||||
# --
|
||||
\subparagraph{${1:subparagraph name}} % (fold)
|
||||
\label{subp:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% subparagraph $2 (end)
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sec
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Section
|
||||
# --
|
||||
\section{${1:section name}} % (fold)
|
||||
\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% section $2 (end)
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sub
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Sub Section
|
||||
# --
|
||||
\subsection{${1:subsection name}} % (fold)
|
||||
\label{sub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% subsection $2 (end)
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: subs
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Sub Sub Section
|
||||
# --
|
||||
\subsubsection{${1:subsubsection name}} % (fold)
|
||||
\label{ssub:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3)/g}}}
|
||||
`yas/selected-text`$0
|
||||
% subsubsection $2 (end)
|
@ -1,7 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Add Row
|
||||
# binding: ""
|
||||
# --
|
||||
\\\\
|
||||
$0${TM_CURRENT_LINE/^[^&]+|[^&]+$|([^&]+)/ (?1: )/g}
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: tab
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Tabular
|
||||
# --
|
||||
\\begin{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${2:c}}
|
||||
$0${2/((?<=.)c|l|r)|./(?1: & )/g}
|
||||
\\end{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: $$
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Display Math — \[ … \]
|
||||
# binding: "^M"
|
||||
# --
|
||||
\[
|
||||
`yas/selected-text`$1
|
||||
\]
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Math Mode — \( … \)
|
||||
# binding: "^M"
|
||||
# --
|
||||
\( `yas/selected-text`$1 \)
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Environment — \begin{}…\end{}
|
||||
# binding: "^@W"
|
||||
# --
|
||||
${TM_SELECTED_TEXT/(\s*).*/$1/m}\begin{${1:environment}}
|
||||
${TM_SELECTED_TEXT/(.+)|\n\z/(?1:\t$0)/g}
|
||||
${TM_SELECTED_TEXT/(\s*).*/$1/m}\end{${1:environment}}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: left…right — \left…\right
|
||||
# binding: "^L"
|
||||
# --
|
||||
${TM_SELECTED_TEXT/(.*)(.)/\\left$1\\right$2/}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Double Quotes
|
||||
# binding: "^`"
|
||||
# --
|
||||
\`\``yas/selected-text`''
|
@ -1 +0,0 @@
|
||||
c-mode
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: #endif
|
||||
# binding: "~@."
|
||||
# --
|
||||
#endif
|
@ -1,5 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: def
|
||||
# name: #ifndef … #define … #endif
|
||||
# --
|
||||
${1:$(if (string= text "") "" (concat "#ifndef " text "\n"))}#define ${1:SYMBOL} ${2:value}${1:$(if (string= text "") "" (concat "\n#endif "))}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: inc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: #include "…"
|
||||
# --
|
||||
#include "${1:${TM_FILENAME/\..+$/.h/}}"
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: Inc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: #include <…>
|
||||
# --
|
||||
#include <${1:.h}>
|
@ -1,11 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: mark
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: #pragma mark
|
||||
# --
|
||||
#if 0
|
||||
${1:#pragma mark -
|
||||
}#pragma mark $2
|
||||
#endif
|
||||
|
||||
$0
|
@ -1 +0,0 @@
|
||||
text-mode
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: for
|
||||
# name: For Loop
|
||||
# expand-env: ((yas/wrap-around-region t))
|
||||
# --
|
||||
for(size_t ${2:i} = 0; $2 < ${1:count}; ${3:++i$(unless yas/modified-p (concat "++" (yas/field-value 2)))})
|
||||
{
|
||||
$0
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: enum
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Enumeration
|
||||
# --
|
||||
enum ${1:name} { $0 };
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: td
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Typedef
|
||||
# --
|
||||
typedef ${1:int} ${2:MyCustomType};
|
@ -1,14 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: cl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Class
|
||||
# --
|
||||
class ${1:${TM_FILENAME/(.+)\..+|.*/(?1:\L$1_t:name)/}}
|
||||
{
|
||||
public:
|
||||
${1/(\w+).*/$1/} (${2:arguments});
|
||||
virtual ~${1/(\w+).*/$1/} ();
|
||||
|
||||
private:
|
||||
${0:/* data */}
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: do
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Do While Loop
|
||||
# --
|
||||
do {
|
||||
${0:/* code */}
|
||||
} while(${1:/* condition */});
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: if
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: If Condition
|
||||
# --
|
||||
if(${1:/* condition */})
|
||||
{
|
||||
${0:/* code */}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ns
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Namespace
|
||||
# --
|
||||
namespace${1/.+/ /m}${1:${TM_FILENAME/^((.*?)\..*)?$/(?1:\L$2:my)/}}
|
||||
{
|
||||
$0
|
||||
}${1/.+/ \/* /m}$1${1/.+/ *\/ /m}
|
@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: st
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Struct
|
||||
# --
|
||||
struct ${1:`(or (and buffer-file-name (file-name-sans-extension (file-name-nondirectory buffer-file-name))) "name")`}
|
||||
{
|
||||
${2:/* data */$(yas/ephemeral-field 2)}
|
||||
};
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: tp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: template <typename …>
|
||||
# --
|
||||
template <typename ${1:_InputIter}>
|
@ -1,10 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: main
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: main()
|
||||
# --
|
||||
int main (int argc, char const *argv[])
|
||||
{
|
||||
${1:/* code */$(yas/ephemeral-field 1)}$0
|
||||
return 0;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: beginend
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: $1.begin(), $1.end()
|
||||
# --
|
||||
${1:v}${1/^.*?(-)?(>)?$/(?2::(?1:>:.))/}begin(), ${1:v}${1/^.*?(-)?(>)?$/(?2::(?1:>:.))/}end()
|
@ -1,17 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: once
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Header Include-Guard
|
||||
# --
|
||||
#ifndef ${1:`#!/usr/bin/env ruby -wKU -riconv
|
||||
name = ENV["TM_FILENAME"] || "untitled"
|
||||
name = Iconv.iconv("ASCII//TRANSLIT", "UTF-8", name).first
|
||||
name = name.gsub(/[^a-z0-9]+/i, "_")
|
||||
uuid = (rand * 2821109907455).round.to_s(36)
|
||||
print "#{name}_#{uuid}".tr("[a-z]", "[A-Z]")
|
||||
`}
|
||||
#define $1
|
||||
|
||||
${TM_SELECTED_TEXT/\Z\n//}${0:}
|
||||
|
||||
#endif /* end of include guard: $1 */
|
@ -1,13 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: readfile
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Read File Into Vector
|
||||
# --
|
||||
std::vector<char> v;
|
||||
if(FILE${TM_C_POINTER: *}fp = fopen(${1:"filename"}, "r"))
|
||||
{
|
||||
char buf[1024];
|
||||
while(size_t len = fread(buf, 1, sizeof(buf), fp))
|
||||
v.insert(v.end(), buf, buf + len);
|
||||
fclose(fp);
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fprintf
|
||||
# name: fprintf (...)
|
||||
# --
|
||||
fprintf (${1:stderr}, "${2:%s}\\n"${2:$(if (string-match "%[^%]" text) "," "\);")}$3${2:$(if (string-match "%" text) "\);" "")}
|
@ -1,9 +0,0 @@
|
||||
# key:once
|
||||
# name : #ifndef XXX; #define XXX; #endif
|
||||
# --
|
||||
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name)))))`_H_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: printf
|
||||
# name: printf (...)
|
||||
# --
|
||||
printf ("${1:%s}\\n"${1:$(if (string-match "%[^%]" text) "," "\);")
|
||||
}$2${1:$(if (string-match "%" text) "\);" "")}
|
@ -1,5 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sprintf
|
||||
# name: s(n)printf …
|
||||
# --
|
||||
s${2:$(if (string= text "") "" "n")}printf (${1:string}${2:$(if (string= text "") "" ",")}${2:size}, "${3:%s}\\n"${3:$(if (string-match "%[^%]" text) "," "\);")}$4${3:$(if (string-match "%" text) "\);" "")}
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: map
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: std::map
|
||||
# --
|
||||
std::map<${1:key}, ${2:value}> map$0;
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: vector
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: std::vector
|
||||
# --
|
||||
std::vector<${1:char}> v$0;
|
@ -1 +0,0 @@
|
||||
text-mode
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background: color image repeat attachment position
|
||||
# --
|
||||
background:${6: #${1:DDD}} url($2) ${3:repeat/repeat-x/repeat-y/no-repeat} ${4:scroll/fixed} ${5:top left/top center/top right/center left/center center/center right/bottom left/bottom center/bottom right/x-% y-%/x-pos y-pos};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-attachment: scroll/fixed
|
||||
# --
|
||||
background-attachment: ${1:scroll/fixed};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-color: hex
|
||||
# --
|
||||
background-color: #${1:DDD};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-color: name
|
||||
# --
|
||||
background-color: ${1:red};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-color: rgb
|
||||
# --
|
||||
background-color: rgb(${1:255},${2:255},${3:255});$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-color: transparent
|
||||
# --
|
||||
background-color: transparent;$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-image: none
|
||||
# --
|
||||
background-image: none;$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-image: url
|
||||
# --
|
||||
background-image: url($1);$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-position: position
|
||||
# --
|
||||
background-position: ${1:top left/top center/top right/center left/center center/center right/bottom left/bottom center/bottom right/x-% y-%/x-pos y-pos};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: background
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: background-repeat: r/r-x/r-y/n-r
|
||||
# --
|
||||
background-repeat: ${1:repeat/repeat-x/repeat-y/no-repeat};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border: size style color
|
||||
# --
|
||||
border: ${1:1px} ${2:solid} #${3:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-bottom: size style color
|
||||
# --
|
||||
border-bottom: ${1:1}px ${2:solid} #${3:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-bottom-color: color
|
||||
# --
|
||||
border-bottom-color: #${1:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-bottom-style: style
|
||||
# --
|
||||
border-bottom-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-bottom-width: size
|
||||
# --
|
||||
border-bottom-width: ${1:1}px ${2:solid} #${3:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-color: color
|
||||
# --
|
||||
border-color: ${1:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-left: size style color
|
||||
# --
|
||||
border-left: ${1:1}px ${2:solid} #${3:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-left-color: color
|
||||
# --
|
||||
border-right-color: #${1:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-left-style: style
|
||||
# --
|
||||
border-left-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-left-width: size
|
||||
# --
|
||||
border-left-width: ${1:1}px
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-right: size style color
|
||||
# --
|
||||
border-right: ${1:1}px ${2:solid} #${3:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-right-color: color
|
||||
# --
|
||||
border-right-color: #${1:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-right-style: style
|
||||
# --
|
||||
border-right-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-right-width: size
|
||||
# --
|
||||
border-right-width: ${1:1}px
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-style: style
|
||||
# --
|
||||
border-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-top: size style color
|
||||
# --
|
||||
border-top: ${1:1}px ${2:solid} #${3:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-top-color: color
|
||||
# --
|
||||
border-top-color: #${1:999};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-top-style: style
|
||||
# --
|
||||
border-top-style: ${1:none/hidden/dotted/dashed/solid/double/groove/ridge/inset/outset};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-top-width: size
|
||||
# --
|
||||
border-top-width: ${1:1}px
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: border
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: border-width: size
|
||||
# --
|
||||
border-width: ${1:1px};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: color
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: color: hex
|
||||
# --
|
||||
color: #${1:DDD};$0
|
@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: color
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: color: name
|
||||
# --
|
||||
color: ${1:red};$0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user