{{note| This page is outdated and needs to be updated}}
== Adapting TeXnicCenter for processing ConTeXt documents ==
You can build and view a ConTeXt document in [http://www.toolscenter.org/ TeXnicCenter ] as follows:* Follow the instructions for [[Windows Installation|installing ConTeXt under Windows]].
* Make sure that ruby and perl are in your PATH ''(Start menu -> Settings -> Control Panel -> System -> Advanced -> Environment Variables; then edit PATH)''. In my system (root = C:\ConTeXt) the first items are: C:\ConTeXt\usr\local\context\ruby\bin; C:\ConTeXt\usr\local\context\ruby\lib; C:\ConTeXt\usr\local\context\perl\bin; C:\ConTeXt\usr\local\context\perl\lib
* Start TeXnicCenter. From the menu select: Build -> Define Output Profiles.
Now your ConTeXt file should compile after selecting "Build -> Build" from the menu or pressing Ctrl+F7 or clicking on the corresponding toolbar icon.
=== With Adobe Acrobat Reader ===
* For installing Acrobat Reader as your viewer again select: Build -> Define Output Profiles.
* Select the tab "Viewer".
* Same choices for "Forward Search" and "Close document before running (La)TeX", except for the Command which in the latter case should be: [DocClose("%bm.pdf")]
=== With SumatraPDF ===
With SumatraPDF you get forward and inverse search capabilities. To enable them, you have to adjust the texexec arguments accordingly and add the "--synctex=-1" option:
Automatically deleting unnecessary auxiliary files after compilation is realised as follows:
* Select: Build -> Define Output Profiles.
* Create a new item "cleanup" by clicking on the first icon after the text "Postprocessors to run after the (La)TeX-compiler".
* In the edit line after "Executable" enter:<br>
C:\ConTeXt\usr\local\context\tex\setuptex.bat & C:\ConTeXt\usr\local\context\tex\texmf-mswin\bin\texmfstart.exe And in the edit line after "Arguments" enter: texutil.bat rb --purgeall<br>.
If you have another root, then change C:\ConTeXt accordingly.