Difference between revisions of "Text Editors"

From Wiki
Jump to navigation Jump to search
(reordered, deleted iTeXMac, Kile, Klat, TeXnicCenter, TextMate (obsolete), updated some links)
(25 intermediate revisions by 9 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, even notepad should do.
+
= Integrating text editors with ConTeXt =
Many editors provide generic TeX syntax highlighting, but some have even more support for 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]]
 +
* [[VSCode]]
  
<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. The [[AUCTeX]] page on this wiki has further AUCTeX customization for ConTeXt. 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.</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.</td>
 
</tr> <tr style="background:#eeeeee;">
 
<td>[[Scite]] or Textadept</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 (TA only) </td>
 
<td> ConTeXt since 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]. </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://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> Probably the most widespread TeX IDE, similar to TeXshop, supported by TUG. </td>
 
</tr><tr>
 
<td> [[Notepad++]] </td>
 
<td> </td><td> </td><td>S </td><td>T </td><td>U </td><td>2 </td><td>+ </td>
 
<td> (Wine)</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 style="background:#eeeeee;">
 
<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 </td>
 
<td> y </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>
 
</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>
+
|-
    <td> [http://www.winedt.com/ WinEdt]</td>
+
| T: || ConTeXt typesetting
    <td> - </td><td> - </td><td> S </td><td> T </td><td> U </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. 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. ''(WinEdt is not free software, but shareware with 31+ days trial. Discount for DANTE members.)''</td>
+
|}
  </tr><tr style="background:#eeeeee;">
+
{|
    <td> [http://www.nano-editor.org/ GNU nano] </td>
+
|- style="text-align:left;"
    <td> </td>
+
! colspan="2" | OSes
    <td> </td>
+
|-
    <td> S </td>
+
| L: || Linux
    <td> </td>
+
|-
    <td> U </td>
+
| M: || MacOS
    <td> ? </td>
+
|-
    <td> </td>
+
| W: || Windows
    <td> y </td>
+
|}
    <td> y </td>
 
    <td> y </td>
 
    <td> 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. </td>
 
  </tr><tr>
 
    <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> y </td>
 
    <td> y (X11) </td>
 
    <td> GNOME editor </td>
 
   </tr><tr style="background:#eeeeee;">
 
    <td> [http://www.textpad.com/ TextPad]</td>
 
    <td> - </td>
 
    <td> - </td>
 
    <td> S </td>
 
    <td> T </td>
 
    <td> U </td>
 
    <td> ? </td>
 
    <td> + </td>
 
    <td> - </td>
 
    <td> y </td>
 
    <td> - </td>
 
    <td> Commercial; TeX/ConTeXt/LaTeX command library; configurable to run a whatever-TeX command as a tool</td>
 
  </tr><tr>
 
  <td> [https://www.peterborgapps.com/smultron/ Smultron]</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 </td>
 
    <td> [[ConTeXt_Minimals/Mac_Installation#Smultron_installation_and_configuration|Old configuration instructions]]. Nowadays commercial. Old Open Source version was better. </td>
 
</tr><tr style="background:#eeeeee;">
 
    <td> [https://sourceforge.net/projects/nedit/ NEdit]</td>
 
    <td> - </td><td> - </td><td> S </td><td> - </td><td> - </td><td> - </td><td> - </td>
 
    <td> y </td>
 
    <td> y </td>
 
    <td> ? </td>
 
    <td>X server (Cygwin/Xorg) is needed to run Nedit on Windows. Outdated.</td>
 
  </tr>
 
</table>
 
  
== SyncTeX ==
+
{|
 +
|- style="text-align:left;background:#cccccc;"
 +
! Editor !! Features !! OSes !! Remarks
 +
|-
 +
| [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.
 +
|}
  
For synchronising between text in PDF and TeX source see [[SyncTeX]].
+
[[Category:Text Editors]]

Revision as of 04:24, 25 September 2021

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.