Changes

Jump to navigation Jump to search
40 bytes removed ,  10:20, 3 March 2017
m
no edit summary
=== Lexing ===
A lexer is a file that defines command highlighting. Since Textadept comes with an own ConTeXt lexer, it is a good idea to bind <code>*.tex</code> and/or <code>*.ctx</code> files to Textadept's ConTeXt lexer. To do so:
1. Add the following lines to your <code>USER/.textadept/init.lua</code>:
textadept.file_types.extensions.tex = 'context'
* If you plan to use LaTeX and ConTeXt, you should use different file extensions. For example <code>*.tex</code> for LaTeX and for example <code>*.cxd</code> for ConTeXt documents. In that case you only have to bind your new ConTeXt extension to Textadept's ConTeXt lexer, since <code>.tex</code> files are automatically recognized as LaTeX documents:
textadept.file_types.extensions.cxd = 'context'
2. Restart Textadept to reload <code>init.lua</code>.
=== Themes & editor font changes ===
* You can change the theme, font and font size of Textadept with the following line
ui.set_theme('dark', {font = 'Monospace', fontsize = 10})
in which the expression '''dark''' is the filename of the theme located either in <code>Textadept\themes</code> or you can download and add new themes to <code>USER\.textadept\themes</code>
194

edits

Navigation menu