[code] Re: [textadept] Feature request: control characters / BOM

From: Joshua Krämer <joshua.kraemer.att.gmail.com>
Date: Sat, 9 Aug 2014 22:16:23 +0200

On 2014-08-09, 11:22, Mitchell wrote:

> Yes, it seems that Scintilla treats character representations
> differently than typical buffer properties. After some
> experimentation, placing the following in my *~/.textadept/init.lua*
> seems to work:
>
> local function set_reprs()
> buffer.representation['\xe2\x84\xa6'] = 'U+2126 \xe2\x84\xa6'
> end
> events.connect(events.BUFFER_AFTER_SWITCH, set_reprs)
> events.connect(events.VIEW_NEW, set_reprs)

Thanks, it works fine. Your help is appreciated!

Kind regards,
Joshua

-- 
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 Sat 09 Aug 2014 - 16:16:23 EDT

This archive was generated by hypermail 2.2.0 : Sun 10 Aug 2014 - 06:34:40 EDT