Changes

Jump to navigation Jump to search
24 bytes added ,  02:19, 3 March 2017
m
no edit summary
== Step 3: Install '''Textadept''' ==
# 1. [https://foicica.com/textadept/download/textadept_LATEST.win32.zip Download] and extract [https://foicica.com/textadept/ '''Textadept'''] to a folder of your choice.# 2. Use <code>textadept.exe</code> from the extracted folder to start '''Textadept'''.
== Step 4: Tweak '''Textadept''''s settings ==
Snippets are predefined code blocks. You add them, again, to your <code>USER/.textadept/init.lua</code>. Snippets in Textadept look like this:
-- The first line is mandatory:
snippets['context'] = snippets['context'] or {}
-- Snippets start here:
snippets.context['emph'] = '{\\em %0}'
snippets.context['bold'] = '{\\bf %0}'
snippets.context['ssubject'] = '\\startsubsubject[title={%1},marking{%1}]\n%0\n\\stopsubsubject'
* '''Note''' that a backslash is created as you would type it in ConTeXt: typing a double backslash <code>\\</code> prints is created by typing a single double backslash <code>\\</code>.
* The most important formatting commands are the following:
**<code>%t</code> creates a tab
* After you added adding snippets, you have to restart Textadept first. * Then you can use <code>Alt + K</code> (by default on Windows machines) to choose from the list of snippets, when a ConTeXt documents document is openopened in the active tab.
194

edits

Navigation menu