Skip to content

Instantly share code, notes, and snippets.

@marcusti
Created April 19, 2009 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusti/98160 to your computer and use it in GitHub Desktop.
Save marcusti/98160 to your computer and use it in GitHub Desktop.
geany.snippets.conf
[Special]
brace_open=\n{\n\t
brace_close=}\n
block=\n{\n\t%cursor%\n}
block_cursor=\n{\n\t%cursor%\n}\n%cursor%
wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
[Ruby]
begin=begin\n\t%cursor%\nrescue\n\t%cursor%\nend
class=class %cursor%\n\t%cursor%\nend\n
classi=class %cursor%\n\tdef initialize\n\t\t%cursor%\n\tend\nend\n
def=def %cursor%\n\t%cursor%\nend
defi=def initialize\n\t%cursor%\nend
each=each do |%cursor%|\nend
eachw=each_with_index do |%cursor%, i|\nend
if=if %cursor%\n\t\nend
while=while %cursor%\n\t\nend
[Python]
for=for i in xrange(%cursor%):\n\t
if=if %cursor%:\n\t
elif=elif %cursor%:\n\t
else=else:\n\t
while=while %cursor%:\n\t
try=try:\n\t%cursor%\nexcept Exception, ex:\n\t
with=with %cursor%:\n\t
def=def %cursor%(self%cursor%):\n\t""" Function doc """\n\t
class=class %cursor%:\n\t""" Class doc """\n\t\n\tdef __init__(self):\n\t\t""" Class initialiser """\n\t\tpass
ret=return %cursor%\n
[HTML]
# by Tomasz Karbownicki <tomasz@karbownicki.com>
# top
html=<html>\n\t%cursor%\n</html>
head=<head>\n\t%cursor%\n</head>
java=<script type="text/javascript">\n\t%cursor%\n</script>
java2=<script type="text/javascript" src="%cursor%"></script>
css=<style type="text/css">\n\t%cursor%\n</style>
css2=<link rel="stylesheet" type="text/css" href="%cursor%" />
rss=<link rel="alternate" type="application/rss+xml" title="%cursor%" href="" />
title=<title>%cursor%</title>
utf=<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
body=<body>\n\t%cursor%\n</body>
# table
table=<table>\n\t<thead>\n\t\t<tr>\n\t\t\t<th>%cursor%</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t</tr>\n\t</tbody>\n</table>
td=<td>%cursor%</td>
tr=<tr>%cursor%</tr>
th=<th>%cursor%</th>
caption=<caption>%cursor%</caption>
# form
form=<form action="%cursor%" method="post">\n\n\t<input type="submit" value="Zapisz" />\n</form>
label=<label for="%cursor%"></label>
input=<input type="text" name="%cursor%" value="" id="" />
pass=<input type="password" name="%cursor%" id="" />
textarea=<textarea name="%cursor%" cols="50" rows="10" id="" ></textarea>
select=<select name="%cursor%" id="">\n\t<option value=""></option>\n</select>
radio=<input type="radio" name="%cursor%" value="" />
checkbox=<input type="checkbox" name="%cursor%" value="" />
# list
ul=<ul class="%cursor%">\n\t<li></li>\n</ul>
ol=<ol class="%cursor%">\n\t<li></li>\n</ol>
li=<li>%cursor%</li>
# inline
span=<span class="%cursor%"></span>
em=<em>%cursor%</em>
cite=<cite>%cursor%</cite>
strong=<strong>%cursor%</strong>
img=<img src="%cursor%" alt="" />
anch=<a name="%cursor%"></a>
thumb=<a href="%cursor%"><img src="" /></a>
# block
div=<div class="%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>
p=<p>%cursor%</p>
pre=<pre>\n%cursor%\n</pre>
code=<code>\n%cursor%\n</code>
quote=<blockquote>\n\t<p>\n\t\t%cursor%\n\t</p>\n</blockquote>
# other
cmt=<!--\n\t%cursor%\n-->
br=<br/>
hr=<hr/>
1s=&nbsp;
3s=&nbsp;&nbsp;&nbsp;
7s=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# Django templates
if={% if %cursor% %}\n\t\n{% endif %}
for={% for sth in %cursor% %}\n\t\n{% endfor %}
# Django variable
dv={{ %cursor% }}
# Django block
db={% %cursor% %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment