Changes

Jump to navigation Jump to search
1,943 bytes added ,  10:59, 2 July 2020
m
drop navbox
< [[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.=Nota bene=
See also This page is outdated and describes the old installation and set of files. Thereis an updated manual: [http://www.pragma-ade.com/general/manuals/mscitescite-context-sreadme.pdf manual mcitescite-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 details of 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 support distribution includes files which can be used to configure SciTE for editing andbuilding ConTeXt documents. See also the [http://homepagewww.macpragma-ade.com/atlgeneral/texmanuals/#other SciTE on MacOSX 10mscite-s.pdf manual mcite.3pdf] for Adam's quickdetails of ConTeXt support. A non-and-dirty port native MacOS X version of SciTE to Pantheris available via [http://www.macports.org/X11MacPorts].
=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.com/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]]

Navigation menu