Changes

Jump to navigation Jump to search
8 bytes removed ,  08:16, 29 December 2017
no edit summary
= NOTE =
THIS SITE IS ONLY A MIRROR of [http://wiki.contextgarden.net/Here I place everything that is important to get started with ConTeXt mkiv and Textadept Textadept] created for editing purposes.
< [[Text Editors]]
[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].
 
= How to ConTeXt with Textadept (MS Windows) =
(create the folder if it's not there yet).
* Many ''base16'' themes for Textadept can be found at [https://github.com/rgieseke/textadept-themes Robert Gieseke's GitHub]. You can preview them [https://termux.com/add-on-styling-color-preview.html here] or [https://chriskempson.github.io/base16/ here] (partially).
* There are more settings which you can look up in Textadept's [https://foicica.com/textadept/manual.html#Themes manual].
=== Snippets ===
Snippets are predefined code or text blocks. Using snippets can save a lot of time as you won't have to retype often used commands and text passages. You add snippets to your <code>USER/.textadept/init.lua</code>. Alternatively you can create a new document, e.g. <code>USER/.textadept/snippets.lua</code>, and load that file from within your <code>init.lua</code> with the line require('snippets')In Textadept snippets look like this:
snippets.context['TRIGGERKEYWORD'] = 'PASTEDTEXT'
snippets.context['item'] = '\\startitem\n\t%<selected_text>%0\n\\stopitem'
snippets.context['enumerate'] = '\\startenumerate\n\t%0\n\\stopenumerate'
snippets.context['chapter'] = '\\startchapter[title={%1},marking{%12}]\n\t%0\n\\stopchapter' snippets.context['section'] = '\\startsection[title={%1},marking{%12}]\n\t%0\n\\stopsection' snippets.context['ssection'] = '\\startsubsection[title={%1},marking{%12}]\n\t%0\n\\stopsubsection' snippets.context['title'] = '\\starttitle[title={%1},marking{%12}]\n\t%0\n\\stoptitle' snippets.context['subject'] = '\\startsubject[title={%1},marking{%12}]\n\t%0\n\\stopsubject' snippets.context['ssubject'] = '\\startsubsubject[title={%1},marking{%12}]\n\t%0\n\\stopsubsubject'
* '''Note''' that a backslash <code>\</code> is set by typing a double backslash <code>\\</code>.
Note though, that if you plan to use Textadept without LaTeX with ConTeXt mkiv only (recommended), then you might not need the package mentioned above as it comes with literally only a hand full of ConTeXt snippets. It also needs additional software to be installed (Textredux, ctags), so that it's almost more comfortable to create own ConTeXt snippets with the ease of Textadept (see above).
 
= NOTE =
 
THIS SITE IS ONLY A MIRROR of [http://wiki.contextgarden.net/Textadept Textadept] created for editing purposes.
194

edits

Navigation menu