Carnet Wiki

snippets geany

# Geany's snippets configuration file for SPIP dev
#
# 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]
rem=[(#REM) %cursor% ]
_=[(#%cursor%)]
b=%boucle%
bb=<B_>\n%boucle%\n</B_>\n
bbb=<B_>\n%boucle%\n</B_>\n<//B_>\n
test=[(#|=={}|?{'',''})]
debug=[<pre>(#ENV**|unserialize|print_r{1})</pre>]
debug2=[(#ENV**|unserialize|foreach)]
inclure=[(#INCLURE{fond=%cursor%})]
env=[<pre>(#ENV**|unserialize|print_r{1})</pre>]
fb=console.log(%cursor%);

[Special]
brace_open= {\n\t
brace_close=}\n
block= {\n\t\n}\n
block_cursor= {\n\t%cursor%\n}\n
boucle=<BOUCLE_%cursor%()></BOUCLE_>

[PHP]
_r=_request("%cursor%")
echo=echo "\\n<br /><br />"; print_r(%cursor%); echo "<br />";
pre=echo "\\n<pre>"; print_r(%cursor%); echo "</pre>";
doc=/**\n * %cursor%\n *\n * @param \n * @return \n**/
file=/**\n * %cursor%\n *\n * @package SPIP\\\n**/
lic=/**\n * %cursor% \n * Licence GPL (c) 2010 Matthieu Marcillaud \n**/
aa=array_map('array_shift', $%cursor%);

[HTML]
xhtml=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">\n<head>\n	<title>%cursor%</title>\n	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n</head>\n<body>\n\n</body>\n</html>
style=<style type="text/css">\n%cursor%\n</style>\n
link=<link rel="stylesheet" href="%cursor%" type="text/css" media="projection, screen, tv" />
jquery=<script type="text/javascript">\n(function($){\n$(document).ready(function(){\n\t$("%cursor%").();\n});\n})(jQuery);\n</script>
doctype=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
script=<script src="%cursor%" type="text/javascript"></script>
img=<img src="%cursor%" alt="" width="" height="" />
ul=<ul>\n	<li>%cursor%</li>	\n</ul>\n
ol=<ol>\n	<li>%cursor%</li>\n	$\n</ol>\n
li=<li>%cursor%</li>
lia=<li><a href="%cursor%"></a></li>
a=<a href="%cursor%"></a>
table=<table>\n	<tr>\n		<td>%cursor%</td>\n		\n	</tr>\n\n</table>\n
form=<form name="%cursor%" action="">\n	\n</form>\n
dump=<pre>{{ dump( %cursor% ) }}</pre>

[CSS]
bg=background:transparent url(%cursor%) left top no-repeat;

[Javascript]
jquery=(function($){\n$(document).ready(function(){\n\t$("%cursor%").();\n});\n})(jQuery);\n
log=console.log(%cursor%);\n
JLuc - Mise à jour :5 avril 2016 à 15h00min