Changes

Jump to navigation Jump to search
113 bytes added ,  20:14, 27 April 2017
no edit summary
snippets.context['ssubject'] = '\\startsubsubject[title={%1},marking{%1}]\n\t%0\n\\stopsubsubject'
* '''Note''' that a backslash <code>\</code> is created set by typing a double backslash <code>\\</code>.
* The most important formatting commands are the following:
**<code>\n</code> set a line break (new line)**<code>\t</code> set a tabulated**<code>%0</code> creates set the ''closing'' caret (placeholder) (the cursor will jump here '''last''')**<code>%1</code> creates set one or multiple input carets (<code>%1</code>, <code>%2</code>, <code>%3</code> and so on; you can also use the same integer multiple times: e.g. <code>\\start%1 ... \\stop%1</code>)**<code>\n</code> creates a new line**<code>\t</code> creates a tab
**<code>%<selected_text></code> this is where highlighted text will be pasted when enclosing it with a snippet (e.g. <code>{\\emph %<selected_text>%0}</code>)
** 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.
*** You can turn off alphabetical sorting of snippets by adding the following line to your <code>init.lua</code>:
* '''Note''' that since you added snippets.'''context''', i.e. 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 4.2.
194

edits

Navigation menu