# 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] html = \n\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\n\n\t
\n\t\t
\n\t\t\t%cursor%\n\t\t
\n\t
\n\t
\n\n style = csslink = script = func = function %cursor%(){\n\t\n} css = %cursor% {\n\t\n} cssw = width:%cursor%; cssminw = min-width:%cursor%; cssmaxw = max-width:%cursor%; cssh = height:%cursor%; cssminh = min-height:%cursor%; cssmaxh = max-height:%cursor%; cssp = padding:%cursor%; csspt = padding-top:%cursor%; csspb = padding-bottom:%cursor%; cssp2 = padding:%cursor%px px; cssp4 = padding:%cursor%px px px px; cssm = margin:%cursor%; cssmt = margin-top:%cursor%; cssmb = margin-bottom:%cursor%; cssm2 = margin:%cursor%px px; cssm4 = margin:%cursor%px px px px; cssbc = background-color:#%cursor%; cssc = color:#%cursor%; cssd = display:%cursor%; cssta = text-align:%cursor%; cssva = vertical-align:%cursor%; cssf = flex:%cursor%; cssfw = flex-wrap:%cursor%; cssfd = flex-direction:%cursor%; cssai = align-items:%cursor%; cssjc = justify-content:%cursor%; h1 =

%cursor%

h2 =

%cursor%

h3 =

%cursor%

h4 =

%cursor%

h5 =
%cursor%
p =

%cursor%

div =
%cursor%
span = %cursor% input = %cursor% 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
tr = td = textarea = byid = document.getElementById('%cursor%') tagname = document.getElementsByTagName('%cursor%') ajaj = ajaj({'file':'file.php', 'nav':'case', 'printTo':'id2', 'runOnReturn':function1, 'additionalParameters':{}, 'f':'','getValuesFrom':'id1', 'loadText':true}); log= console.log(%cursor%); php = req = $_REQUEST['%cursor%'] notice = trigger_notice(%cursor%); trig = trigger_notice(%cursor%); if=if(%cursor%)%block_cursor% for=for($i = 0; $i < %cursor%; $i++)%block% else=else%block_cursor% while=while(%cursor%)%block_cursor% switch=switch(%cursor%)%brace_open%case '':\n\t\t%cursor%\n\tbreak;\n%brace_close% try=try%block%\ncatch (%cursor%)%block_cursor% foreach=foreach((value,key)=>{%cursor%doSomething(value,key);}); filter=filter((value,key) => (%cursor%true)); map=map((value,key) => `%cursor%append ${value}`); sort=sort((val1,val2) => %cursor%val1>val2); reduce=reduce((total,value) => %cursor%total + value,0); lorem = Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sagittis diam sed metus egestas tincidunt. Cras ac volutpat augue, et mattis ligula. Praesent eget congue enim. Sed maximus, quam sit amet varius molestie, est mauris maximus nisl, ac gravida arcu elit finibus justo. Curabitur sagittis elit id elit pharetra, ac auctor purus laoreet. # 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\t brace_close=}\n block={\n\t%cursor%\n} block_cursor={\n\t%cursor%\n}\n%cursor% #wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 # Optional keybindings to insert snippets # Note: these can be overridden by Geany's configurable keybindings [Keybindings] #for=7