Re: [code] I need help adding a language-specific snippet

From: Mitchell <m.att.foicica.com>
Date: Sun, 5 May 2013 23:27:27 -0400 (EDT)

Russell,

On Mon, 6 May 2013, Russell Dickenson wrote:

> [snip]
> I renamed my post_init.lua file init.lua but after restarting Textadept and
> opening an XML file I got the following error message:
>
> /home/rdickens/.textadept/modules/xml/init.lua:1: attempt to index field
> 'xml' (a nil value)

The snippets.xml table has not been defined yet so you have to do it
manually:

   snippets.xml = {
     ['hi'] = 'hello there'
   }

or

   snippets.xml = {}
   snippets.xml['hi'] = 'hello there'

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 05 May 2013 - 23:27:27 EDT

This archive was generated by hypermail 2.2.0 : Mon 06 May 2013 - 06:34:06 EDT