Open main menu

Changes

1,948 bytes added ,  08:29, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
< [[Text Editors]] > =Nota bene= This page is outdated and describes the old installation and set of files. Thereis an updated manual: [http://www.pragma-ade.nl/general/manuals/scite-context-readme.pdf scite-context-readme.pdf]. This file as well as all files needed are also part of the ConTeXt distribution. There's also a newer and more detailed wiki page on how to install ConTeXt and SciTe on a machine that doesn't use other TeX distribution: http://wiki.contextgarden.net/Windows_Installation:_ConTeXt_Suite_with_SciTe. Also have a look at [[Textadept]], a SciTE descendant that already includes the Lua Lexers and is also available for OSX. A Textadept module for ConTeXt is being developed at [https://github.com/stephengaito/ta-context-latex ta-context-latex]. =Introduction=
[http://www.scintilla.org/SciTE.html SciTE] is a [http://www.scintilla.org/ Scintilla] based text editor for Linux and Windows. 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.
See also the [http://www.pragma-ade.comnl/general/manuals/mscite-s.pdf manual mcite.pdf] for details of ConTeXt support. A non-native MacOS X version of SciTE is available via [http://www.macports.org/ MacPorts].
=Installing SciTE for ConTeXt=
==Installing on Windows==
''Note. If you are installing ConTeXt and SciTe simultaneously and do not have any other TeX related systems on your Windows, you may prefer to follow the [[Simple Windows InstallationWindows_Installation:_ConTeXt_Suite_with_SciTe]] instructions instead.''
The following procedure has been found to work, assuming that the current ConTeXt distribution is installed in the folder C:\tools\context.
Now save the settings file, close it, then close SciTE. When you restart SciTE, UTF-8 should be the default encoding.
==Installing on Unix==
Assuming you installed SciTE successfully and followed the instruction in the [http://www.pragma-ade.nl/general/manuals/mscite-s.pdf manual] in order to enable ConTeXt support, there may be a problem in correctly using the Tools (like compiling and building from within SciTE). The launcher inside your Applications menu may be unaware of your $PATH variable, which might lead to an error like
 
<pre>
>mtxrun --autogenerate --script context --pdf myfile.tex
sh: mtxrun: not found
>Exit code: 127
</pre>
 
To correct this you need to create your own launcher, which executes a script (call it runscite) running SciTE whilst ensuring the $PATH variable is correctly set. You can achieve this by following the code
 
<pre>
cat <<'EOF' > /tmp/runscite
#!/bin/bash
export PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH
exec scite $@
EOF
 
chmod +x /tmp/runscite
 
sudo cp /tmp/runscite /usr/local/bin
</pre>
 
where the PATH needs to point to your mtxrun (and context) scripts. Then you can have your launcher use the command /usr/local/bin/runscite and then you should be able to build your *.tex files from within SciTE by pressing [F7].
[[Category: Text Editors]]