Re: [NTG-context] ConTeXt support for Atom or other text editors

2020-01-22 Thread Sébastien Wilmet
On Tue, Jan 21, 2020 at 04:14:53PM +0100, Hans Hagen wrote:
> On 1/21/2020 3:20 PM, Nicola wrote:
> > On 2020-01-21, Sébastien Wilmet  wrote:
> > > I'm actually looking for a text editor on Linux that supports those
> > > three features:
> > > - syntax highlighting
> > > - command completion
> > > - spell-checking
> > > 
> > > Does it exist?
> > 
> > Well, Vim has pretty solid support for ConTeXt (disclaimer: I am
> > maintaining the ConTeXt plugin distributed with Vim), including the
> > features you mention and much more:
> > 
> >  https://wiki.contextgarden.net/Vim
> > 
> > But if you have never used Vim, it has a steeper learning curve that
> > a typical text editor.
> > 
> 
> (btw, in scite/textadept there is support for syntax support, real time
> spell checking, nested lexing, etc)

I already know Vim, but nowadays I prefer an application that I can just
launch and it just works, out of the box. With Vim I need to read the
docs of plugins, configure the plugins, remember what are the keyboard
shortcuts for spell-checking, etc. I should maybe try GVim instead of
using Vim in a terminal. Or Neovim.

I've tried to install scite and textadept, but on Linux it's a bit
difficult with Scintillua. And I'm not sure that command completion is
supported.

BTW I'm the author of GNOME LaTeX ;-)
https://wiki.gnome.org/Apps/GNOME-LaTeX
(this text editor supports only LaTeX, unfortunalety). If I have the
time I would like to implement a new text editor specialized for TeX and
ConTeXt.

Sébastien
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt support for Atom or other text editors

2020-01-21 Thread Hans Hagen

On 1/21/2020 3:20 PM, Nicola wrote:

On 2020-01-21, Sébastien Wilmet  wrote:


I'm actually looking for a text editor on Linux that supports those
three features:
- syntax highlighting
- command completion
- spell-checking

Does it exist?


Well, Vim has pretty solid support for ConTeXt (disclaimer: I am
maintaining the ConTeXt plugin distributed with Vim), including the
features you mention and much more:

 https://wiki.contextgarden.net/Vim

But if you have never used Vim, it has a steeper learning curve that
a typical text editor.

On a side note: a difficulty with maintaining syntax highlighting for
ConTeXt is that I had to write my own script to extract ConTeXt-specific
and MetaFun-specific keywords from source code. Is there any way to do
it with ConTeXt?
there are ways to extract it from the interface specifications ... which 
is done for scite, vscode, ...


(btw, in scite/textadept there is support for syntax support, real time 
spell checking, nested lexing, etc)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt support for Atom or other text editors

2020-01-21 Thread Nicola
On 2020-01-21, Sébastien Wilmet  wrote:

> I'm actually looking for a text editor on Linux that supports those
> three features:
> - syntax highlighting
> - command completion
> - spell-checking
>
> Does it exist?

Well, Vim has pretty solid support for ConTeXt (disclaimer: I am
maintaining the ConTeXt plugin distributed with Vim), including the
features you mention and much more:

https://wiki.contextgarden.net/Vim

But if you have never used Vim, it has a steeper learning curve that
a typical text editor.

On a side note: a difficulty with maintaining syntax highlighting for
ConTeXt is that I had to write my own script to extract ConTeXt-specific
and MetaFun-specific keywords from source code. Is there any way to do
it with ConTeXt?

Nicola


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] ConTeXt support for Atom or other text editors

2020-01-21 Thread Sébastien Wilmet
Hi,

On Tue, Jan 14, 2020 at 07:32:16PM +0100, Henning Hraban Ramm wrote:
> is someone beside me using the Atom IDE?
> Then have a look at my enhanced syntax highlighter:
> https://github.com/fiee/language-context
> 
> It’s still work in progress, but I use it every day.
> 
> It’s a fork of the outdated package of the same name, not yet available via 
> the usual channels, but since upstream didn’t react to my pull requests, 
> maybe I’ll publish it under a different name.

To have command completion, there is this project that can be used with
various text editors or IDEs that support the language server protocol:
https://github.com/astoff/digestif

I suppose that Atom supports the language server protocol. Digestif has
support for ConTeXt too, not just LaTeX.

With Atom is there spell-checking? Without marking TeX/ConTeXt commands
as misspelled?

-

I'm actually looking for a text editor on Linux that supports those
three features:
- syntax highlighting
- command completion
- spell-checking

Does it exist? The following wiki page doesn't list spell-checking, and
doesn't list command completion separately from syntax highlighting:
https://wiki.contextgarden.net/Text_Editors

I'm learning a little ConTeXt and I have some struggle to find a text
editor.

Thanks,
Sébastien
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___