Carnet Wiki

snippets geany

snippets geany

  1. # Geany's snippets configuration file for SPIP dev
  2. #
  3. # use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR).
  4. # use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode.
  5. # use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue').
  6. # use %key% for all keys defined in the [Special] section.
  7. # use %cursor% to define where the cursor should be placed after completion. You can define multiple
  8. # %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor
  9. # position in the completed snippet.
  10. # You can define a section for each supported filetype to overwrite default settings, the section
  11. # name must match exactly the internal filetype name, run 'geany --ft-names' for a full list.
  12. #
  13. # Additionally, you can use most of the template wildcards like {developer}, {command:...},
  14. # or {date} in the snippets.
  15. # See the documentation for details.
  16.  
  17. # For a list of available filetype names, execute:
  18. # geany --ft-names
  19.  
  20. # Default is used for all filetypes and keys can be overwritten by [filetype] sections
  21. [Default]
  22. rem=[(#REM) %cursor% ]
  23. _=[(#%cursor%)]
  24. b=%boucle%
  25. bb=<B_>\n%boucle%\n</B_>\n
  26. bbb=<B_>\n%boucle%\n</B_>\n<//B_>\n
  27. test=[(#|=={}|?{'',''})]
  28. debug=[<pre>(#ENV**|unserialize|print_r{1})</pre>]
  29. debug2=[(#ENV**|unserialize|foreach)]
  30. inclure=[(#INCLURE{fond=%cursor%})]
  31. env=[<pre>(#ENV**|unserialize|print_r{1})</pre>]
  32. fb=console.log(%cursor%);
  33.  
  34. [Special]
  35. brace_open= {\n\t
  36. brace_close=}\n
  37. block= {\n\t\n}\n
  38. block_cursor= {\n\t%cursor%\n}\n
  39. boucle=<BOUCLE_%cursor%()></BOUCLE_>
  40.  
  41. [PHP]
  42. _r=_request("%cursor%")
  43. echo=echo "\\n<br /><br />"; print_r(%cursor%); echo "<br />";
  44. pre=echo "\\n<pre>"; print_r(%cursor%); echo "</pre>";
  45. doc=/**\n * %cursor%\n *\n * @param \n * @return \n**/
  46. file=/**\n * %cursor%\n *\n * @package SPIP\\\n**/
  47. lic=/**\n * %cursor% \n * Licence GPL (c) 2010 Matthieu Marcillaud \n**/
  48. aa=array_map('array_shift', $%cursor%);
  49.  
  50. [HTML]
  51. 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>
  52. style=<style type="text/css">\n%cursor%\n</style>\n
  53. link=<link rel="stylesheet" href="%cursor%" type="text/css" media="projection, screen, tv" />
  54. jquery=<script type="text/javascript">\n(function($){\n$(document).ready(function(){\n\t$("%cursor%").();\n});\n})(jQuery);\n</script>
  55. doctype=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  56. script=<script src="%cursor%" type="text/javascript"></script>
  57. img=<img src="%cursor%" alt="" width="" height="" />
  58. ul=<ul>\n <li>%cursor%</li> \n</ul>\n
  59. ol=<ol>\n <li>%cursor%</li>\n $\n</ol>\n
  60. li=<li>%cursor%</li>
  61. lia=<li><a href="%cursor%"></a></li>
  62. a=<a href="%cursor%"></a>
  63. table=<table>\n <tr>\n <td>%cursor%</td>\n \n </tr>\n\n</table>\n
  64. form=<form name="%cursor%" action="">\n \n</form>\n
  65. dump=<pre>{{ dump( %cursor% ) }}</pre>
  66.  
  67. [CSS]
  68. bg=background:transparent url(%cursor%) left top no-repeat;
  69.  
  70. [Javascript]
  71. jquery=(function($){\n$(document).ready(function(){\n\t$("%cursor%").();\n});\n})(jQuery);\n
  72. log=console.log(%cursor%);\n

Télécharger