Changes

Jump to navigation Jump to search
no edit summary
==Chapter 4: Install SciTe==
Now you have ConTeXt. To complement it, i.e. to easily write and compile ConTeXt files, install the SciTe TeXworks editor. It is a nifty open source editor that, with some adjustments, will be able to highlight ConTeXt code and run ConTeXt from inside the editor. (And it is pretty useful for e.g. html and php editing, too.)
===Step 1: Get SciTeTeXworks===Browse to [http://www.tug.org/texworks/ http://www.tug.org/texworks/]and download the exe file and execute it to install TeXworks.
There's a SciTe included in your ConTeXt SuiteDuring installation, but you'll get less hassle with user rights and such if you use [https://www.ebswift.com/scite-text-editor-installer.html Windows installer for SciTe]. Keep accepting everything it suggests and you'll get a very standard Windows program installed without any hassle. I recommend not using the 'context menu' during setup to register (you can right-click any text file (html, php, tex, txtonly) and give command "Edit with SciTe in New Tab" or "Edit with SciTe in New Window.tex"files to the application. Disable the other ones.)
==Ready, steady, test!==
Start TeXWorks.
===Step 2: Fetch and install lexer add-in=== See also https://foicica.com/scintillua/manual.html The up-to-date In the dropdown, select "ConTeXt version uses ''external lexers'' and for that you have to [http://foicica.com/scintillua/download Download the lexer add-in zip] (just get the top-most file of those listed in the download directoryLuaTex). Then extract/unzip the contents of the lexer zip into a temporary directory. You get a directory <tt>scintillua''xxx-n''</tt> (e.g. <tt>scintillua375-1</tt>). Insite the temp folder, look for a folder called 'lexers'. Locate your SciTE installation, typically C:\Program Files\SciTE\ for Windows for Linux.Move the 'lexers' directory to the root of your SciTE installation. Also leave the SciTe program folder open. You'll need it next! ==Chapter 5: Adjust SciTe to work with ConTeXt== === Copy setup files === Go to <tt>C:\context\tex\tex\texmf-context\context\data\scite\context\lexers</tt>. Copy everything from this folder to your SciTe program lexers folder. If you only plan to use SciTe for ConTeXt, you can replace all files. If you want to keep all the existing functionality, copy the subfolder contents by hand, but make sure you get everything."
=== Import settings into SciTe ===Now you are ready to go.
Open SciTe. Go to the <code>Options</code> menu and choose <code>Open Global Options File</code>. Scroll all the way to then end of the file and write <pre>import lexers/lpegimport scite-context-user</pre> and save the file. Close/restart SciTe. ==Ready, steady, test!== Now you are ready to go. Start SciTE and open a ConTeXt document (if you have any) or try with a simple "Hello world"Type in:
<pre>
</pre>
Save the document as <tt>''something''helloworld.tex</tt>, e.g. helloworld.tex. The syntax highlighting should come on and show the ConTeXt codes differently than the text itself.  [[File:helloworld.png|600px]] Now press F4 or menu/tools/build to build your file.I get the error message:<pre>>texexec --pdf Test.tex>Exit code: 1</pre>I expected to read:<pre>>context --pdf Test.tex</pre>
AnywayNow click on the green button to build your file. Other manuals write this, maybe it works for you:
Now press Ctrl+F12 to process your After there are some lines of compiler output, a pdf file should open and auto-open the resulting pdf in you should see your default pdf reader (most often Adobe Acrobat Reader). The first run will take a while, but if things starts happening, you probably have working ConTeXt"hello world".
==Literature==
21

edits

Navigation menu