Re: [code][textadept] broken help link

From: Arnel <rcl.att.openmailbox.org>
Date: Fri, 22 Apr 2016 00:24:53 +0800

On 21 April 2016 10:44AM, Gabriel Dubatti wrote:
> Hi Mitchell,
>
> I was trying to add a lexer I made for the ".mas" file extension (a
> macro assembly file) when I found this broken link:
> href="_M.textadept.file_types.html".
>
> BTW, how can I asociate the ".mas" extension with the lexer
> (~/.textadept/lexers/mas.lua) in my init.lua?
> I read the file_types doc but I didn't get it.

You can add the following to your 'init.lua':

   textadept.file_types.extensions.mas = 'macro_assembly'

Since you're working on a lexer for them, consider adding build/run commands as
well:

   textadept.run.run_commands.mas = '<insert run command for MAS files here>'
   textadept.run.build_commands.mas = '<insert build command here>

----
Thank you,
Arnel
-- 
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 Thu 21 Apr 2016 - 12:24:53 EDT

This archive was generated by hypermail 2.2.0 : Fri 22 Apr 2016 - 06:52:15 EDT