From 3665e0faa9691e9add52e36f12c5c5c8277ebbf5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 29 Apr 2011 17:49:58 -0400 Subject: Added note to use tabs in snippets; modules/textadept/snippets.lua --- modules/textadept/snippets.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/textadept/snippets.lua') diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 5b7e348a..3fff2de2 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -112,12 +112,15 @@ module('_m.textadept.snippets', package.seeall) -- _G.snippets.snippet = '_G.snippets.%1 = \'%0\'' -- _G.snippets.file = '%' -- _G.snippets.lua = { --- f = 'function %1(name)(%2(args))\n %0\nend' +-- f = 'function %1(name)(%2(args))\n\t%0\nend' -- } -- -- The first two snippets are global. The first is quite simple to understand. -- The second runs Lua code to determine the current buffer's filename and -- inserts it. The last snippet expands only when editing Lua code. +-- +-- It is recommended to use tab characters instead of spaces like in the last +-- example. Tabs will be converted to spaces as necessary. -- settings INDIC_SNIPPET = 9 -- cgit v1.2.3