Changes

Jump to navigation Jump to search
15 bytes added ,  08:28, 29 December 2017
no edit summary
[https://foicica.com/textadept/ Textadept] is a programmable text editor for Linux, Mac OSX and Windows. It is fully extensible using [https://www.lua.org/ Lua].
= Minimal quick installation of ConTeXt with Textadept (MS Windows) =(updated 2017/1203)
== Step 1: Install / Update '''ConTeXt''' ==
**<code>%<selected_text></code> this is where highlighted text will be pasted when enclosing it with a snippet (e.g. <code>{\\bi %<selected_text>%0}</code>)
* After adding snippets, you have to restart Textadept or reset Lua state as described in Step 42.
* You can paste snippets into ConTeXt documents
** either by typing the keyword that you defined within <code>snippets.context['KEYWORD']</code> and pressing <code>Tab</code>-key afterwards
** or by using <code>Ctrl + K</code> (by default on Windows machines) to choose from the list of snippets. No matter in which order you add them to your <code>init.lua</code>, they will show up sorted alphabetically.
* '''Note''' that since this way you bound snippets to Textadept's ConTeXt lexer, Textadept's status bar in the lower right corner has to say '''context''', otherwise use a ConTeXt document or see Step 42.2.
* Read more about snippets in Textadept's [https://foicica.com/textadept/api.html#textadept.snippets manual].
194

edits

Navigation menu