Difference between revisions of "Text Editors"

From Wiki
Jump to navigation Jump to search
 
(45 intermediate revisions by 17 users not shown)
Line 1: Line 1:
< [[Main Page]] | [[Related Programs]] >
+
__NOTOC__
 +
You can use any text editor that can save text files in UTF-8 for creating a input file for ConTeXt. Many editors provide generic TeX syntax highlighting, but some have even more support for ConTeXt.
  
You can use any text editor for creating a source file for ConTeXt (in case of desperation, even notepad should do :). A lot of editors provide generic TeX syntax highlighting (not based on a word list). But some have a bit more support for ConTeXt:
+
= Integrating text editors with ConTeXt =
  
== ConTeXt-aware ==
+
* [[BBEdit]]
 +
* Emacs
 +
** [[AUCTeX|AUCTeX]]
 +
** [[Emacs-muse|muse]]
 +
** [[Reftex|Reftex]]
 +
* [[ITeXMac]]
 +
* [[LEd]]
 +
* [[Notepad++]]
 +
* [[Scite]] ([[Windows Installation: ConTeXt Suite with SciTe]])
 +
* [[TeXnicCenter]]
 +
* [[Texpad]]
 +
* [[TeXShop]]
 +
* [[Textadept]]
 +
* [[TextMate]]
 +
* [[TeXworks]]
 +
* [[Vim]]
  
<table> <tr style="background:#cccccc;">
+
== Setting up source synchronisation ==
<td> Editor </td>
 
<td colspan="7"> features </td>
 
<td> Linux </td>
 
<td> Win </td>
 
<td> MacOS X </td>
 
<td> Remarks </td>
 
</tr> <tr style="background:#eeeeee;">
 
<td> [http://www.emacswiki.org/cgi-bin/wiki Emacs] with [http://www.gnu.org/software/auctex/ AUCTeX] </td>
 
<td> </td><td> </td><td> S </td><td> T </td><td> U </td><td> </td><td> ? </td>
 
<td> y </td>
 
<td> y </td>
 
<td> y </td>
 
<td> Extremely powerful & highly configurable text editor for CTRL- and ALT- key lovers.<br> The official AUCTeX distribution beginning with 11.50 has ConTeXt support. Berend de Boers ConTeXt mode for Emacs has been merged with the former ConTeXt support in AUCTeX by Patrick Gundlach. [[More AUCTeX]] has further AUCTeX customization for ConTeXt. If you write documents with bibliographies, indexes, or cross-references, you may also be interested in [[Using reftex with ConTeXt]].</td>
 
</tr> <tr>
 
<td> [[Vim]]  </td>
 
<td> </td><td> </td><td> S </td><td> T </td><td> U </td><td> 2 </td><td> ? </td>
 
<td> y </td>
 
<td> y </td>
 
<td> y </td>
 
<td> Extremely powerful & highly configurable text editor. It operates in different "modes": you type in text in "insert mode" and pass commands to the editor in "normal mode." Whether you prefer Vim or emacs is a religious question of the highest importance. (See also: [[Vim]])</td>
 
</tr> <tr style="background:#eeeeee;">
 
<td>[[Scite]]</td>
 
<td> C </td><td> </td><td> S </td><td> T </td><td> U </td><td> </td><td> </td>
 
<td> y </td>
 
<td> y </td>
 
<td> y (X11) </td>
 
<td> ConTeXt support not before v1.6.x. ConTeXt support files come with the ConTeXt distribution in directory context/data/context.properties. See also the [http://www.pragma-ade.com/general/manuals/mscite-s.pdf manual mcite.pdf]
 
[http://homepage.mac.com/atl/tex/#other SciTE on MacOSX 10.3] is Adam's quick-and-dirty port of SciTE to Panther/X11. </td>
 
</tr><tr>
 
<td> [http://www.uoregon.edu/~koch/texshop/ TeXshop] </td>
 
<td> ? </td><td> P </td><td> S </td><td> T </td><td> U </td><td> </td><td> </td>
 
<td> - </td>
 
<td> - </td>
 
<td> y (native)</td>
 
<td> Simple Cocoa IDE. [[ConTeXt_Minimals/Mac_Installation#TeXShop_installation_and_configuration|Configuration instructions]] </td>
 
</tr><tr style="background:#eeeeee;">
 
<td> [http://gedit.sourceforge.net/ gedit] </td>
 
<td> </td><td> </td><td> S </td><td> </td><td> U </td><td> ? </td><td> </td>
 
<td> y </td>
 
<td> - </td>
 
<td> y (X11) </td>
 
<td> GNOME editor </td>
 
</tr><tr>
 
<td> [http://lumumba.luc.ac.be/jori/klat/ klat] </td>
 
<td> </td><td> </td><td> S </td><td> T </td><td> U </td><td> ? </td><td> </td>
 
<td> y </td>
 
<td> - </td>
 
<td> y (X11) </td>
 
<td> KDE editor, based on kate </td>
 
</tr> <tr style="background:#eeeeee;">
 
<td> [[iTeXMac]] </td>
 
<td> ? </td><td> P </td><td> S </td><td> T </td><td> U </td><td> </td><td> + </td>
 
<td> - </td>
 
<td> - </td>
 
<td> y (native) </td>
 
<td> More advanced Cocoa IDE (one of its modes doesn't like tabulated source)</td>
 
              </tr><tr>
 
<td> [[TextMate]] </td>
 
<td> C </td><td> -  </td><td> S </td><td> T </td><td> U </td><td> ?</td><td> </td>
 
<td> - </td>
 
<td> - </td>
 
<td> y (native)</td>
 
<td> ConTeXt bundle not yet in distribution, but you can download one at  [http://dl.contextgarden.net/support/context-tmbundle.dmg]. There is an [[ConTeXt Bundle for TextMate|extra page]]  </td>
 
</tr> <tr style="background:#eeeeee;">
 
<td> [[Notepad++]] </td>
 
<td> </td><td> </td><td>S </td><td>T </td><td>U </td><td>2 </td><td>+ </td>
 
<td> </td>
 
<td>y </td>
 
<td> </td>
 
<td> Npp is one of the most powerful and useful text editors around. For windows users (you can also use it under wine) wanting a more modern interface with loads of included features (see especially the TextFX menu), it deserves a close look. </td>
 
</tr><tr>
 
<td> [http://kate-editor.org Kate] </td>
 
<td> - </td><td> - </td><td> S </td><td> ? </td><td> U </td><td> - (KDE3) / 2 (KDE4) <td> + </td>
 
<td> y </td>
 
<td> y (cygwin) </td>
 
<td> ? (probably x11) </td>
 
<td> Kate is an advanced multi-document text editor for KDE (KWrite is in the same package, but handles only single documents). It has already built-in LaTeX syntax highlighting, but you can install a [http://kde-files.org/content/show.php/ConTeXt+-+Syntax+Highlighting?content=54006 file that provides ConTeXt syntax highlight]. It is planned to be included in the Kate package itself in the (near) future though.
 
</tr><tr style="background:#eeeeee;">
 
<td> [http://kile.sourceforge.net Kile] </td>
 
<td> C </td><td> P </td><td> S </td><td> ? </td><td> U </td><td> - (KDE3) / 2 (KDE4) </td><td> + </td>
 
<td> y </td>
 
<td> y (cygwin) </td>
 
<td> ? (probably x11) </td>
 
<td> Kile is a very advanced KDE-based editor/environment that primarily aims at LaTeX users, but can be set up to refer to ConTeXt-related programs to create/build documents. As Kile uses Katepart as its editor, the same method applies for ConTeXt syntax highlighting as it does for Kate. Other settings can be changed in the settings dialog, to make it ConTeXt-aware. Amongst other advanced features, Kile has to offer project management, inverse and forward TEX<->DVI search, side tree view of the document structure (e.g. by chapters, sections etc.)
 
</tr>
 
<tr>
 
  <td> [http://tuppis.com/smultron/ Smultron]</td>
 
    <td> - </td><td> P </td><td> S </td><td> T </td><td> - </td><td> - </td><td> - </td>
 
    <td> - </td>
 
    <td> - </td>
 
    <td> y </td>
 
    <td> [[ConTeXt_Minimals/Mac_Installation#Smultron_installation_and_configuration|Configuration instructions]] </td>
 
</tr> <tr style="background:#eeeeee;">
 
<td>[http://www.tug.org/texworks/ TeXWorks]</td>
 
<td> </td><td> P </td><td> S </td><td> T </td><td> U </td><td> </td><td> </td>
 
<td> (y) </td>
 
<td> y </td>
 
<td> y </td>
 
<td>  </td>
 
</tr>
 
</table>
 
  
'''features:'''
+
* [[SyncTeX]]
* C = TeX/ConTeXt command completion
 
* P = PDF preview 
 
* S = TeX/ConTeXt syntax highlighting 
 
* T = ConTeXt typesetting
 
* U = Unicode (UTF-8) handling
 
* 2 = bidirectional edit (right-to-left)
 
* + = more…
 
* ? = previous feature probable but unsure
 
  
== Other editors ==
+
= Text editors =
  
The following editors have no specific ConTeXt support, but do a good job for generic (La)TeX typesetting, so you may use them for ConTeXt as well:
+
{|
<table>
+
|- style="text-align:left;"
  <tr style="background:#cccccc;">
+
! colspan="2" | Features
    <td> Editor </td>
+
|-
    <td colspan="7"> features </td>
+
| C: || ConTeXt syntax highlighting (and perhaps command completion)
    <td> Linux </td>
+
|-
    <td> Win </td>
+
| P: || PDF preview
    <td> MacOS X </td>
+
|-
    <td> Remarks </td>
+
| S: || [[SyncTeX]] support (synchronising between text in PDF and TeX source)  
  </tr><tr style="background:#eeeeee;">
+
|-
    <td> [http://www.winedt.com/ WinEdt]</td>
+
| T: || ConTeXt typesetting
    <td> - </td><td> - </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td>
+
|-
    <td> - </td>
+
| 2: || bidirectional editing (right-to-left)
    <td> y </td>
+
|-
    <td> - </td>
+
| _<sup>?</sup>: || previous feature probable but unsure
    <td> A nice, configurable Windows editor, very suitable for newbies to (La)TeX. A large  collection of buttons with Greek letters and other (math) symbols is very helpfulp when typesetting math. It also has spell checker, but no support for UTF yet.<br> LaTeX users can also find many templates (tables, enumerations, ...) and compiling/previewing the documents by clicking a button. This is supported For ConTeXt also. You can configure it easily.<br>''(WinEdt is not free software, but shareware with 31+ days trial.)''</td>
+
|}
  </tr><tr>
+
{|
    <td> [http://nedit.org/ NEdit]</td>
+
|- style="text-align:left;"
    <td> - </td><td> - </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td>
+
! colspan="2" | OSes
    <td> y </td>
+
|-
    <td> y </td>
+
| L: || Linux
    <td> ? </td>
+
|-
    <td>X server (Cygwin/Xorg) is needed to run Nedit on Windows</td>
+
| M: || MacOS
</tr><tr style="background:#eeeeee;">
+
|-
    <td> [http://www.toolscenter.org/ TeXnicCenter]</td>
+
| W: || Windows
    <td> - </td><td> P </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td>
+
|}
    <td> - </td>
 
    <td> y </td>
 
    <td> - </td>
 
    <td> Oriented towards the use of LaTeX, but can also be used for processing ConTeXt documents. A large  collection of buttons with Greek letters and other (math) symbols is very helpfulp when typesetting math. It also has spell checker.<br> LaTeX users can also find many templates (tables, enumerations, ...) and compiling/previewing the documents by clicking a button (it is easy to [[Configure TeXnicCenter for ConTeXt]] use).<br>''(TeXnicCenter is freely available under GPL).''</td></tr>
 
  
</table>
+
{|
 
+
|- style="text-align:left;background:#cccccc;"
== SyncTeX ==
+
! Editor !! Features !! OSes !! Remarks
 
+
|-
For synchronising between text in PDF and TeX source see [[SyncTeX]].
+
| [https://atom.io Atom]
 +
| CSP || LMW
 +
| The new text editor for the kool kids, based on Electron. Good git client. Lots of plugins covering any editing task. Install plugins "language-context" and "pdf-view" for C and P.
 +
|- style="background:#eeeeee;"
 +
| [http://www.barebones.com/products/bbedit/ BBEdit]
 +
| CSTP || M
 +
| Venerable, powerful text editor for MacOS. Highlighting, section navigation, and code folding available through a [https://github.com/pmazaitis/ConTeXtBBLM/releases language module]; typesetting and PDF preview available through an [http://dflect.net/context-typeset-tool/ external script].
 +
|-
 +
| [https://www.microsoft.com/p/context-ide/9nn9q389ttjr ConTeXt IDE]
 +
| CP || W
 +
| The first self-contained IDE for ConTeXt. After a few button presses you can start writing, compiling and viewing. There are some templates provided for new users. It is a Windows 10 app with 'fluent design' GUI. The editor is based on monaco-editor and the PDF viewer is based on PDF.js.
 +
|- style="background:#eeeeee;"
 +
| [http://www.emacswiki.org/cgi-bin/wiki Emacs] with [http://www.gnu.org/software/auctex/ AUCTeX]
 +
| CT || LMW
 +
| Extremely powerful & highly configurable text editor for CTRL- and ALT- key lovers.<br>The official AUCTeX distribution beginning with 11.50 has ConTeXt support. Further [[AUCTeX]] customization for ConTeXt. <br>If you write documents with bibliographies, indexes, or cross-references, you may also be interested in [[Reftex|using Reftex]]. There is also [[Emacs-muse]] which is an extension.
 +
|-
 +
| [https://wiki.gnome.org/Apps/Gedit gedit]
 +
| || L(MW)
 +
| GNOME editor
 +
|- style="background:#eeeeee;"
 +
| [http://www.jedit.org jEdit]
 +
| || LMW
 +
| Cross-platform mature programmer’s text editor. Good support for TeX and LilyPond among the rest.
 +
|-
 +
| [http://kate-editor.org Kate]
 +
| C || L(MW)
 +
| Kate is an advanced multi-document text editor for KDE. It has built-in LaTeX syntax highlighting, but you can install a [http://kde-files.org/content/show.php/ConTeXt+-+Syntax+Highlighting?content=54006 file that provides ConTeXt syntax highlight].
 +
|- style="background:#eeeeee;"
 +
| [http://www.nano-editor.org/ nano]
 +
| || L(MW)
 +
| Curses-based text editor for Unix and Unix-like systems, designed to be a free replacement for the Pico text editor. Has basic TeX syntax highlighting.
 +
|-
 +
| [[Notepad++]]
 +
| CT<sup>?</sup>2 || W
 +
| Npp is one of the most powerful and useful text editors on Windows (you can also use it under Wine). Modern interface with loads of included features (see especially the TextFX menu). ConTeXt support files come with the ConTeXt distribution in directory <tt>texmf-context/context/data/npp</tt>.
 +
|- style="background:#eeeeee;"
 +
| '''[[Scite|SciTE]]'''
 +
| CT || L(M)W
 +
| The "official" ConTeXt editor ([http://www.pragma-ade.com/general/manuals/scite-context-readme.pdf more info]). ConTeXt support files come with the ConTeXt distribution in directory <tt>texmf-context/context/data/scite</tt>. SciTE for Mac is commercial (AppStore).
 +
|-
 +
| [https://www.peterborgapps.com/smultron/ Smultron]
 +
| PTU || M
 +
| Shareware. [[ConTeXt_Minimals/Mac_Installation#Smultron_installation_and_configuration|Old configuration instructions]].
 +
|- style="background:#eeeeee;"
 +
| [https://www.sublimetext.com/ Sublime Text]
 +
| CT2 || LMW
 +
| Uncluttered yet extremely powerful & widely revered text editor. With Package Control, install the vital [https://packagecontrol.io/packages/simple_ConTeXt simple_ConTeXt] package.
 +
|-
 +
| [https://projects.eclipse.org/projects/science.texlipse/ TeXlipse]
 +
| PS<sup>?</sup>T || LMW
 +
| LaTeX-Extension for Eclipse (part of Eclipse Science)
 +
|- style="background:#eeeeee;"
 +
| [http://www.uoregon.edu/~koch/texshop/ TeXshop]
 +
| PT || M
 +
| Simple TeX IDE for OSX. [[TeXShop]]
 +
|-
 +
| [https://www.texstudio.org/ TeXstudio]
 +
| PST || LMW
 +
| Extensive, memory-hungry LaTeX IDE. Too LaTeX-centered to be really helpful for ConTeXt.
 +
|- style="background:#eeeeee;"
 +
| [[Textadept]]
 +
| CT || LMW
 +
| ConTeXt support files come with the ConTeXt distribution in directory <tt>texmf-context/context/data/textadept</tt>.
 +
|-
 +
| [[TextMate]]
 +
| C || M
 +
| The ConTeXt bundle is not in the distribution, but you can download a copy from [https://github.com/pgundlach/context.tmbundle/ GitHub].
 +
|- style="background:#eeeeee;"
 +
| [http://www.textpad.com/ TextPad]
 +
| CT || W
 +
| Commercial; TeX/ConTeXt/LaTeX command library; configurable to run a whatever-TeX command as a tool
 +
|-
 +
| [http://www.tug.org/texworks/ TeXWorks]
 +
| PST || LMW
 +
| Probably the most widespread TeX IDE, similar to TeXshop, supported by TUG. ConTeXt support files come with the ConTeXt distribution in directory <tt>texmf-context/context/data/texworks</tt>.
 +
|- style="background:#eeeeee;"
 +
| [[Vim]]  
 +
| CT2 || LMW
 +
| Extremely powerful & highly configurable text editor. It operates in different "modes": you type in text in "insert mode" and pass commands to the editor in "normal mode." Whether you prefer Vim or emacs is a religious question of the highest importance.
 +
|-
 +
| [http://www.winedt.com/ WinEdt]
 +
| T || W
 +
| Shareware. A nice, configurable Windows editor for LaTeX. A large collection of buttons with Greek letters and other (math) symbols is very helpfulp when typesetting math. It also has spell checker. LaTeX users can also find many templates (tables, enumerations, ...) and compiling/previewing the documents by clicking a button. This is supported for ConTeXt also. You can configure it easily.
 +
|}
  
 
[[Category:Text Editors]]
 
[[Category:Text Editors]]

Latest revision as of 11:11, 2 July 2020

You can use any text editor that can save text files in UTF-8 for creating a input file for ConTeXt. Many editors provide generic TeX syntax highlighting, but some have even more support for ConTeXt.

Integrating text editors with ConTeXt

Setting up source synchronisation

Text editors

Features
C: ConTeXt syntax highlighting (and perhaps command completion)
P: PDF preview
S: SyncTeX support (synchronising between text in PDF and TeX source)
T: ConTeXt typesetting
2: bidirectional editing (right-to-left)
_?: previous feature probable but unsure
OSes
L: Linux
M: MacOS
W: Windows
Editor Features OSes Remarks
Atom CSP LMW The new text editor for the kool kids, based on Electron. Good git client. Lots of plugins covering any editing task. Install plugins "language-context" and "pdf-view" for C and P.
BBEdit CSTP M Venerable, powerful text editor for MacOS. Highlighting, section navigation, and code folding available through a language module; typesetting and PDF preview available through an external script.
ConTeXt IDE CP W The first self-contained IDE for ConTeXt. After a few button presses you can start writing, compiling and viewing. There are some templates provided for new users. It is a Windows 10 app with 'fluent design' GUI. The editor is based on monaco-editor and the PDF viewer is based on PDF.js.
Emacs with AUCTeX CT LMW Extremely powerful & highly configurable text editor for CTRL- and ALT- key lovers.
The official AUCTeX distribution beginning with 11.50 has ConTeXt support. Further AUCTeX customization for ConTeXt.
If you write documents with bibliographies, indexes, or cross-references, you may also be interested in using Reftex. There is also Emacs-muse which is an extension.
gedit L(MW) GNOME editor
jEdit LMW Cross-platform mature programmer’s text editor. Good support for TeX and LilyPond among the rest.
Kate C L(MW) Kate is an advanced multi-document text editor for KDE. It has built-in LaTeX syntax highlighting, but you can install a file that provides ConTeXt syntax highlight.
nano L(MW) Curses-based text editor for Unix and Unix-like systems, designed to be a free replacement for the Pico text editor. Has basic TeX syntax highlighting.
Notepad++ CT?2 W Npp is one of the most powerful and useful text editors on Windows (you can also use it under Wine). Modern interface with loads of included features (see especially the TextFX menu). ConTeXt support files come with the ConTeXt distribution in directory texmf-context/context/data/npp.
SciTE CT L(M)W The "official" ConTeXt editor (more info). ConTeXt support files come with the ConTeXt distribution in directory texmf-context/context/data/scite. SciTE for Mac is commercial (AppStore).
Smultron PTU M Shareware. Old configuration instructions.
Sublime Text CT2 LMW Uncluttered yet extremely powerful & widely revered text editor. With Package Control, install the vital simple_ConTeXt package.
TeXlipse PS?T LMW LaTeX-Extension for Eclipse (part of Eclipse Science)
TeXshop PT M Simple TeX IDE for OSX. TeXShop
TeXstudio PST LMW Extensive, memory-hungry LaTeX IDE. Too LaTeX-centered to be really helpful for ConTeXt.
Textadept CT LMW ConTeXt support files come with the ConTeXt distribution in directory texmf-context/context/data/textadept.
TextMate C M The ConTeXt bundle is not in the distribution, but you can download a copy from GitHub.
TextPad CT W Commercial; TeX/ConTeXt/LaTeX command library; configurable to run a whatever-TeX command as a tool
TeXWorks PST LMW Probably the most widespread TeX IDE, similar to TeXshop, supported by TUG. ConTeXt support files come with the ConTeXt distribution in directory texmf-context/context/data/texworks.
Vim CT2 LMW Extremely powerful & highly configurable text editor. It operates in different "modes": you type in text in "insert mode" and pass commands to the editor in "normal mode." Whether you prefer Vim or emacs is a religious question of the highest importance.
WinEdt T W Shareware. A nice, configurable Windows editor for LaTeX. A large collection of buttons with Greek letters and other (math) symbols is very helpfulp when typesetting math. It also has spell checker. LaTeX users can also find many templates (tables, enumerations, ...) and compiling/previewing the documents by clicking a button. This is supported for ConTeXt also. You can configure it easily.