# Geany's snippets configuration file # # use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR). # use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode. # use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue'). # use %key% for all keys defined in the [Special] section. # use %cursor% to define where the cursor should be placed after completion. You can define multiple # %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor # position in the completed snippet. # You can define a section for each supported filetype to overwrite default settings, the section # name must match exactly the internal filetype name, run 'geany --ft-names' for a full list. # # Additionally, you can use most of the template wildcards like {developer}, {command:...}, # or {date} in the snippets. # See the documentation for details. # For a list of available filetype names, execute: # geany --ft-names # Default is used for all filetypes and keys can be overwritten by [filetype] sections [Default] # special keys to be used in other snippets, cannot be used "standalone" # can be used by %key%, e.g. %brace_open% # nesting of special keys is not supported (e.g. brace_open=\n{\n%brace_close% won't work) # key "wordchars" is very special, it defines the word delimiting characters when looking for # a word to auto complete, leave commented to use the default wordchars [Special] brace_open=\n{\n\t brace_close=}\n block=\n{\n\t%cursor%\n} block_cursor=\n{\n\t%cursor%\n}\n%cursor% block_sl=\s{\n\t%cursor%\n}\s # php related (see PHP section below) php_start=\n\s*\s@copyright\sCopyright\s(c)\s{year}\s{company}\n\s*\s@created\s{command:date +"%d %b %Y %T"}\n\s*/\n php_class=class\s%cursor%\n{\n%ws%public\sfunction\s__construct()\s{}\n\n%ws%public\sfunction\s__destruct()\s{}\n} # # wordchars=_-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # # Optional keybindings to insert snippets # Note: these can be overridden by Geany's configurable keybindings [Keybindings] #for=7 [PHP] # by Atanas Beloborodov # File php=%php_start% phpcl=%phpcl_head%%php_class% class=%php_class% inter=interface\s%cursor% %block% aclass=abstract\s%php_class% # Class properties pub=public\s$%cursor%; pro=protected\s$%cursor%; priv=private\s$%cursor%; # Static class properties pubs=public\sstatic\s$%cursor%; pros=protected\sstatic\s$%cursor%; privs=private\sstatic\s$%cursor%; # Abstract methods apub=abstract\spublic\sfunction\s%cursor%(); aprot=abstract\sprotected\sfunction\s%cursor%(); apriv=abstract\sprivate\sfunction\s%cursor%(); # Functions and class methods construct=public\sfunction\s__construct(%cursor%)%block% destruct=public\sfunction\s__destruct(%cursor%)%block% public=public\sfunction\s%cursor%()%block% protected=protected\sfunction\s%cursor%()%block% private=private\sfunction\s%cursor%()%block% publics=public\sstatic\sfunction\s%cursor%()%block% # Static methods protecteds=protected\sstatic\sfunction\s_%cursor%()%block% privates=private\sstatic\sfunction\s_%cursor%()%block% func=function\s%cursor%()%block% # Control structures if=if\s(%cursor%)%block_sl% ifelse=if\s(%cursor%)%block_sl%else%block_sl% for=for\s($i=0;\s$i<%cursor%;\s$i++)\s%block_sl% while=while\s(%cursor%)\s%block_sl% switch=switch\s(%cursor%)\s{\n\tcase\s'';\n\n\tbreak;\n\n\tdefault\s:\n\n\tbreak;\n}\n do=do%block_sl%while\s(%cursor%); foreach=foreach\s(%cursor%)\s%block_sl% ifalt= ifelsealt= try=try%block_sl%catch(%cursor%)%block_sl% # Special this=$this->%cursor% req=require_once '%cursor%'; inc=include_once '%cursor%'; reqo=require '%cursor%'; inco=include '%cursor%'; def=define('%cursor%',0); throw=throw\snew\s%cursor%Exception\s('%cursor%');e% declare=declare\s(%cursor%); dump=var_dump(%cursor%);\sexit; [Javascript] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (i = 0; i < %cursor%; i++)%block_cursor% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% try=try%block%\ncatch (%cursor%)%block_cursor% # jQuery jquery= jqueryui= jready=$(document).ready(function(){\n\t%cursor%\n}); jfunc=$(function(){\n\t%cursor%\n}); log=console.log('%cursor%'); [HTML] # by Tomasz Karbownicki # top html5=\n\n\t\n\t\t\n\t\t%cursor%\n\t\n\n\t\n\t%cursor%\n\t\n html=\n\t%cursor%\n head=\n\t%cursor%\n js= js2= css= css2= rss= title=%cursor% utf= ie7= refresh= body=\n\t%cursor%\n # table table=\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n
%cursor%
%cursor%
td=%cursor% tr=%cursor% th=%cursor% caption=%cursor% # form form=
\n\n\t\n
formp=
\n\n\t

{{ form.as_p }}

\n

\n
label= input= pass= textarea= select= radio= checkbox= button= fieldset=
\n\t%cursor%\n
# list ul=
    \n\t
  • %cursor%
  • \n
ol=
    \n\t
  1. %cursor%
  2. \n
li=
  • %cursor%
  • dl=
    \n\t
    %cursor%
    \n\t
    %cursor%
    \n
    dt=
    %cursor%
    dd=
    %cursor%
    # inline a=%cursor% span=%cursor% em=%cursor% small=%cursor% big=%cursor% cite=%cursor% strong=%cursor% img=%cursor% thumb=%cursor% # block div=
    %cursor%
    h1=

    %cursor%

    h2=

    %cursor%

    h3=

    %cursor%

    h4=

    %cursor%

    h5=
    %cursor%
    h6=
    %cursor%
    p=

    %cursor%

    pre=
    \n%cursor%\n
    code=%cursor% prec=
    %cursor%
    quote=
    \n\t

    \n\t\t%cursor%\n\t

    \n
    # other cl=class="%cursor%" id=id="%cursor%" cmt= cmt2= br=
    hr=
    1s=  3s=    7s=        dummyimage= dummyimage2= [CSS] # by Tomasz Karbownicki bc=background-color: %cursor%; bp=background-position: %cursor%; bct=background-color: transparent; ba=background: url(%cursor%) %cursor%; ma=margin: %cursor%; pa=padding: %cursor%; bo=border: %cursor%; co=color: %cursor%; cu=cursor: %cursor%; he=height: %cursor%; wi=width: %cursor%; di=display: %cursor%; fs=font-size: %cursor%; ff=font-family: %cursor%; fw=font-weight: %cursor%; ta=text-align: %cursor%; ts=text-shadow: %cursor%; td=text-decoration: %cursor%; fl=float: %cursor%; lh=line-height: %cursor%; im=!important po=position: %cursor%; ov=overflow: %cursor%; op=opacity: 0.5; ra=-moz-border-radius: %cursor%px; -webkit-border-radius: %cursor%px; border-radius: %cursor%px; sh=border-shadow: %cursor%px %cursor%px #%cursor% %cursor%px; cmt=/* ######### %cursor% ######### */ hide=text-indent: 9999em; line-height: 9999em; overflow: hidden; [C#] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (i = 0; i < %cursor%; i++)%block_cursor% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% try=try%block%\ncatch (%cursor%)%block_cursor% [Vala] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (i = 0; i < %cursor%; i++)%block_cursor% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% try=try%block%\ncatch (%cursor%)%block_cursor% [ActionScript] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (i = 0; i < %cursor%; i++)%block_cursor% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% try=try%block%\ncatch (%cursor%)%block_cursor% [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% (%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 # Django templates if={% if %cursor% %}\n\t\n{% endif %} for={% for sth in %cursor% %}\n\t%cursor%\n{% endfor %} dv={{ %cursor% }} db={% %cursor% %} dbl={% block %cursor% %}\n\t%cursor%\n{% endblock %} trans={% trans "%cursor%" %} [Ferite] iferr=iferr%block_cursor%fix%block% monitor=monitor%block_cursor%handle%block% [Haskell] [C] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (i = 0; i < %cursor%; i++)%block_cursor% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% [C++] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (int i = 0; i < %cursor%; i++)%brace_open%\n%brace_close% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% try=try%block%\ncatch (%cursor%)%block_cursor% [Java] if=if (%cursor%)%block_cursor% else=else%block_cursor% for=for (int i = 0; i < %cursor%; i++)%brace_open%\n%brace_close% while=while (%cursor%)%block_cursor% do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor% switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor% try=try%block%\ncatch (%cursor%)%block_cursor%