Changes

Jump to navigation Jump to search
2,472 bytes added ,  12:14, 4 November 2009
Created
< [[Text Editors]] >

[http://www.scintilla.org/SciTE.html SciTE] is a [http://www.scintilla.org/ Scintilla] based text editor. Originally built to demonstrate Scintilla, it has grown to be a generally useful editor with facilities for building and running programs. The ConTeXt distribution includes files which can be used to configure SciTE for editing and building ConTeXt documents.

=Installing SciTE for ConTeXt=

==Installing on Windows==

The following procedure has been found to work, assuming that the current ConTeXt distribution is installed in the folder C:\tools\context.

* Download the SciTE Windows binaries from [http://www.scintilla.org/SciTEDownload.html SciTEDownload] to a suitable location on the target machine, e.g. C:\Tools\scite.

* Copy the contents of C:\tools\context\texmf-context\context\data\scite to C:\tools\scite\wscite.

* Create a batch file C:\Tools\scite\cscite.bat for use with SciTE. This runs setuptex.bat before launching SciTE. The contents of this batch file should be:
<pre>
rem Use to start SciTE for ConTeXt
@echo off
c:
cd \tools\context
call setuptex
cd \tools\scite\wscite
start scite.exe %1%
</pre>

* After initial installation, add the following to the SciTEGlobal.properties.
<pre>import context</pre>

* Local settings are defined in SciTEUser.properties.

Building a ConTeXt document is as simple as opening it in the editor and pressing [F7].

=== Building using MKii ===
There are still some problems with MKiv, but SciTE builds using MKiv by default, to change to MKii alter
the file context.properties as follows:
<pre>
#name.context.texexec=$(name.context.mtxrun) --script context $(name.texexec.flag.pdfopen)
name.context.texexec=$(name.context.mtxrun) --usekpse texexec $(name.texexec.flag.pdfopen)
</pre>

=== Using [Cntrl-2] ===
The default behaviour for [Cntrl-2] is to open a PDF using GhostView, to get it to use Acrobat Reader, proceed as follows:
* Edit the file context.properties to include the line:
<pre>name.context.acrobat=acrord32.exe</pre>
then edit the lines beginning "command.2" as follows:
<pre>
command.2.$(file.patterns.context)=$(name.context.acrobat) $(FileDir)\$(FileName).pdf
command.2.$(file.patterns.metafun)=
command.2.$(file.patterns.example)=$(name.context.acrobat) $(FileDir)\$(FileName).pdf
</pre>
* Make sure that the PATH environment variable includes the directory of the Acrobat executable (e.g. C:\Program Files\Adobe\Reader 8.0\Reader).


[[Category: Text Editors]]

Navigation menu