Skip to content

Instantly share code, notes, and snippets.

@DOlDNa

DOlDNa/snippets.conf

Last active Mar 15, 2020
Embed
What would you like to do?
snippets.conf @geany @twbs @KinagaCMS
[PHP]
if=if (%cursor%)%block_cursor%
else=else%block_cursor%
for=for ($i=0, $c=count(%cursor%); $i < %cursor%; ++$i)%brace_open%\n%brace_close%
func=function %cursor%(%cursor%)%brace_open%\n\treturn\n%brace_close%
while=while (%cursor%)%block_cursor%
do=do\n{\n\t%cursor%\n} while (%cursor%)\n
switch=switch (%cursor%)%brace_open%case %cursor%: %cursor%; break;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
try=try%block%\ncatch (%cursor%)%block_cursor%
fil=filter_input(INPUT_POST, '%cursor%', FILTER_SANITIZE_STRING)
filv=filter_has_var(INPUT_POST, '%cursor%')
var=var_dump(%cursor%);
log=console.log('%cursor%');
a=<a href="%cursor%">%cursor%</a>
abbr=<abbr title="%cursor%">%cursor%</abbr>
absolute=<div class="position-absolute">%cursor%</div>
acco=<div class="accordion" id="a%cursor%">\n\t<div class="card">\n\t\t<div class="card-header" id="b%cursor%">\n\t\t\t<h2 class="border-0 mb-0">\n\t\t\t\t<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#c%cursor%" aria-expanded="true" aria-controls="c%cursor%">%cursor%</button>\n\t\t\t</h2>\n\t\t</div>\n\t\t<div id="c%cursor%" class="collapse show" aria-labelledby="b%cursor%" data-parent="#a%cursor%">\n\t\t\t<div class="card-body">%cursor%</div>\n\t\t</div>\n\t</div>\n\t<div class="card">\n\t\t<div class="card-header" id="d%cursor%">\n\t\t\t<h2 class="border-0 mb-0">\n\t\t\t\t<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#e%cursor%" aria-expanded="false" aria-controls="e%cursor%">%cursor%</button>\n\t\t\t</h2>\n\t\t</div>\n\t\t<div id="e%cursor%" class="collapse" aria-labelledby="d%cursor%" data-parent="#a%cursor%">\n\t\t\t<div class="card-body">%cursor%</div>\n\t\t</div>\n\t</div>\n</div>
addr=<address>%cursor%</address>
alert=<div class="alert alert-danger%cursor%"><a href="%cursor%" class="alert-link">%cursor%</a>%cursor%</div>
baseline=<span class="align-baseline">%cursor%</span>
bdg=<span class="badge badge-secondary%cursor%">%cursor%</span>
bgda=<div class="p-3 mb-2 bg-danger text-white">%cursor%</div>
bgdk=<div class="p-3 mb-2 bg-dark text-white">%cursor%</div>
bgin=<div class="p-3 mb-2 bg-info text-white">%cursor%</div>
bgli=<div class="p-3 mb-2 bg-light text-dark">%cursor%</div>
bgpr=<div class="p-3 mb-2 bg-primary text-white">%cursor%</div>
bgse=<div class="p-3 mb-2 bg-secondary text-white">%cursor%</div>
bgsu=<div class="p-3 mb-2 bg-success text-white">%cursor%</div>
bgwa=<div class="p-3 mb-2 bg-warning text-white">%cursor%</div>
bgwh=<div class="p-3 mb-2 bg-white text-dark">%cursor%</div>
bold=<p class="font-weight-bold">%cursor%</p>
bottom=<span class="align-bottom">%cursor%</span>
br=<br>
btn=<button type="button" class="btn btn-primary%cursor%">%cursor%</button>
btng=<div class="btn-group%cursor%">\n\t<button type="button" class="btn btn-secondary%cursor%">%cursor%</button>\n\t<button type="button" class="btn btn-secondary%cursor%">%cursor%</button>\n\t<button type="button" class="btn btn-secondary%cursor%">%cursor%</button>\n</div>
cap=<p class="text-capitalize">%cursor%</p>
card=<div class="card">\n\t<img src="%cursor%" class="card-img-top" alt="%cursor%">\n\t<div class="card-body">\n\t\t%cursor%\n\t</div>\n</div>
caro=<div id="%cursor%" class="carousel slide" data-ride="carousel">\n\t<div class="carousel-inner">\n\t\t<div class="carousel-item active">\n\t\t\t<img src="%cursor%" class="d-block w-100" alt="%cursor%">\n\t\t</div>\n\t\t<div class="carousel-item">\n\t\t\t<img src="%cursor%" class="d-block w-100" alt="%cursor%">\n\t\t</div>\n\t\t<div class="carousel-item">\n\t\t\t<img src="%cursor%" class="d-block w-100" alt="%cursor%">\n\t\t</div>\n\t</div>\n</div>
center=<p class="text-center">%cursor%</p>
cite=<cite>%cursor%</cite>
clear=<div class="clearfix%cursor%">%cursor%</div>
close=<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>
code=<code>%cursor%</code>
d1=<h1 class="display-1">%cursor%</h1>
d2=<h1 class="display-2">%cursor%</h1>
d3=<h1 class="display-3">%cursor%</h1>
d4=<h1 class="display-4">%cursor%</h1>
dd=<dd>%cursor%</dd>
del=<del>%cursor%</del>
div=<div class="%cursor%">%cursor%</div>
dl=<dl class="%cursor%">\n\t<dt>%cursor%</dt>\n\t<dd>%cursor%</dd>\n</dl>
dt=<dt>%cursor%</dt>
em=<em>%cursor%</em>
emb=<div class="embed-responsive embed-responsive-16by9%cursor%">%cursor%</div>
fig=<figure class="figure">\n\t<img src="%cursor%" class="figure-img img-fluid rounded" alt="%cursor%">\n\t<figcaption class="figure-caption">%cursor%</figcaption>\n</figure>
fixed=<div class="position-fixed">%cursor%</div>
fixedb=<div class="fixed-bottom">%cursor%</div>
fixedt=<div class="fixed-top">%cursor%</div>
fl=<div class="float-left">%cursor%</div>
flex=<div class="d-flex justify-content-between%cursor%">\n\t<div>%cursor%</div>\n\t<div>%cursor%</div>\n</div>
fr=<div class="float-right">%cursor%</div>
h1=<h1>%cursor%</h1>
h2=<h2>%cursor%</h2>
h3=<h3>%cursor%</h3>
h4=<h4>%cursor%</h4>
h5=<h5>%cursor%</h5>
h6=<h6>%cursor%</h6>
h50=<div class="h-50"></div>
hr=<hr>
img=<img class="img-fluid" src="%cursor%" alt="%cursor%">
imgr=<img class="rounded" src="%cursor%" alt="%cursor%">
imgt=<img class="img-thumbnail" src="%cursor%" alt="%cursor%">
ins=<ins>%cursor%</ins>
inv=<div class="invisible">%cursor%</div>
italic=<p class="font-italic">%cursor%</p>
jumbo=<div class="jumbotron%cursor%">%cursor%</div>
kbd=<kbd>%cursor%</kbd>
lead=<p class="lead">%cursor%</p>
left=<p class="text-left">%cursor%</p>
li=<li>%cursor%</li>
lig=<ul class="list-group">\n\t<li class="list-group-item">\n\t\t%cursor%\n\t</li>\n</ul>
light=<p class="font-weight-light">%cursor%</p>
liin=<ul class="list-inline">\n\t<li class="list-inline-item">%cursor%</li>\n</ul>
lower=<p class="text-lowercase">%cursor%</p>
mark=<mark>%cursor%</mark>
media=<div class="media">\n\t<img src="%cursor%" class="mr-3" alt="%cursor%">\n\t<div class="media-body">\n\t\t<h5 class="mt-0">%cursor%</h5>\n\t\t%cursor%\n\t</div>\n</div>
mh=<div class="mh-100">%cursor%</div>
middle=<span class="align-middle">%cursor%</span>
mono=<p class="text-monospace">%cursor%</p>
mvh=<div class="min-vh-100">%cursor%</div>
mvw=<div class="min-vw-100">%cursor%</div>
mw=<div class="mw-100">%cursor%</div>
nomal=<p class="font-weight-normal">%cursor%</p>
ol=<ol class="%cursor%">\n\t<li>%cursor%</li>\n</ol>
p=<p>%cursor%</p>
pill=<span class="badge badge-pill badge-primary%cursor%">%cursor%</span>
pop=<button type="button" class="btn btn-lg btn-danger%cursor%" data-toggle="popover" data-placement="top%cursor%" title="%cursor%" data-content="%cursor%">%cursor%</button>
pre=<pre>\n%cursor%\n</pre>
prec=<pre><code>%cursor%</code></pre>
prog=<div class="progress">\n\t<div class="progress-bar progress-bar-striped" role="progressbar" style="width: %cursor%" aria-valuenow="10%cursor%" aria-valuemin="0" aria-valuemax="100"></div>\n</div>
qt=<blockquote class="blockquote nowrap">\n\t<p class="mb-0 wrap">\n\t\t%cursor%\n\t</p>\n\t<footer class="blockquote-footer">\n\t\t%cursor%\n\t</footer>\n</blockquote>
relative=<div class="position-relative">%cursor%</div>
right=<p class="text-right">%cursor%</p>
row=<div class="row">\n\t<div class="col-%cursor%">%cursor%</div>\n\t<div class="col-%cursor%">%cursor%</div>\n</div>
s=<s>%cursor%</s>
samp=<samp>%cursor%</samp>
shadow=<div class="shadow p-3 mb-5 bg-white rounded">%cursor%</div>
small=<small>%cursor%</small>
span=<span>%cursor%</span>
spin=<div class="spinner-grow text-primary%cursor%" role="status">\n\t<span class="sr-only">Loading...%cursor%</span>\n</div>
static=<div class="position-static">%cursor%</div>
sticky=<div class="position-sticky">%cursor%</div>
strong=<strong>%cursor%</strong>
tab=<nav class="nowrap">\n\t<div class="nav nav-tabs" id="%cursor%" role="tablist">\n\t\t<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home%cursor%" role="tab" aria-controls="nav-home" aria-selected="true">Home%cursor%</a>\n\t\t<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile%cursor%" role="tab" aria-controls="nav-profile" aria-selected="false">Profile%cursor%</a>\n\t\t<a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact%cursor%" role="tab" aria-controls="nav-contact" aria-selected="false">Contact%cursor%</a>\n\t</div>\n</nav>\n<div class="tab-content" id="%cursor%">\n\t<div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">%cursor%</div>\n\t<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">%cursor%</div>\n\t<div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">%cursor%</div>\n</div>
table=<table class="table table-dark">\n\t<tr>\n\t\t<td>%cursor%</td>\n\t</tr>\n</table>
tb=<span class="align-text-bottom">%cursor%</span>
text=<p class="text-primary%cursor%">%cursor%</p>
tip=<button type="button" class="btn btn-secondary%cursor%" data-toggle="tooltip" data-placement="top%cursor%" data-html="true" title="%cursor%">%cursor%</button>
top=<span class="align-top">%cursor%</span>
ttop=<span class="align-text-top">%cursor%</span>
u=<u>%cursor%</u>
ul=<ul class="%cursor%">\n\t<li>%cursor%</li>\n</ul>
upper=<p class="text-uppercase">%cursor%</p>
vh=<div class="vh-100">%cursor%</div>
visible=<div class="visible">%cursor%</div>
vw=<div class="vw-100">%cursor%</div>
w50=<div class="w-50">%cursor%</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.