ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Installing VSCode extension?
@ 2020-07-28  4:51 Alasdair McAndrew
  2020-07-28 16:50 ` Hans Hagen
  0 siblings, 1 reply; 17+ messages in thread
From: Alasdair McAndrew @ 2020-07-28  4:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 823 bytes --]

I am installing the Windows version of ConTeXt, which comes with a VSCode
extension, in

<ConTeXt>\tex\texmf-context\context\data\vscode\extensions


with instructions to run (from within the VSCode terminal):

code -- extensions-dir <above directory> -- install-extension context


The trouble is that the current ConTeXt installation (as of 65 minutes
ago), doesn't seem to contain an extension in the format that VSCode
understands.  Running that command produces the errors:

Installing extensions...
Extension 'context' not found.
Make sure you use the full extension ID, including the publisher, e.g.:
ms-dotnettools.csharp
Failed Installing Extensions: context:


For what it's worth, I'm running VSCode 1.46.0.

How can I install the VSCode ConTeXt extension?

Thank you,
Alasdair

-- 
https://numbersandshapes.net

[-- Attachment #1.2: Type: text/html, Size: 1500 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-28  4:51 Installing VSCode extension? Alasdair McAndrew
@ 2020-07-28 16:50 ` Hans Hagen
  2020-07-29 12:19   ` Alasdair McAndrew
  0 siblings, 1 reply; 17+ messages in thread
From: Hans Hagen @ 2020-07-28 16:50 UTC (permalink / raw)
  To: ntg-context

On 7/28/2020 6:51 AM, Alasdair McAndrew wrote:
> I am installing the Windows version of ConTeXt, which comes with a 
> VSCode extension, in
> 
>     <ConTeXt>\tex\texmf-context\context\data\vscode\extensions
> 
> 
> with instructions to run (from within the VSCode terminal):
> 
>     code -- extensions-dir <above directory> -- install-extension context
> 
> 
> The trouble is that the current ConTeXt installation (as of 65 minutes 
> ago), doesn't seem to contain an extension in the format that VSCode 
> understands.  Running that command produces the errors:
> 
>     Installing extensions...
>     Extension 'context' not found.
>     Make sure you use the full extension ID, including the publisher,
>     e.g.: ms-dotnettools.csharp
>     Failed Installing Extensions: context:
> 
> 
> For what it's worth, I'm running VSCode 1.46.0.
> 
> How can I install the VSCode ConTeXt extension?
Here i just run this (seems to work with latest update):

data/context/vscode-context.cmd

(I only occasionally check vscode and will look into it again when there 
is easy suffix dependent runner support. Of course I do generate the 
syntax files.)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-28 16:50 ` Hans Hagen
@ 2020-07-29 12:19   ` Alasdair McAndrew
  2020-07-29 15:12     ` Henning Hraban Ramm
  0 siblings, 1 reply; 17+ messages in thread
From: Alasdair McAndrew @ 2020-07-29 12:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2662 bytes --]

Thank you very much, but in fact that script file "vscode-context.cmd"
really just contains the same command for installing extensions as I quoted
above - and so produces the same errors.  Maybe I'll go back to trying
SciTe - I gave it a bit of a go, but wasn't successful.  Of all the
information on the context-wiki, and the Pragma webpage - where would I go
to find the most up-to-date information about configuring an editor to work
with ConTeXt in Windows?

Thanks again,
Alasdair

On Wed, Jul 29, 2020 at 2:51 AM Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 7/28/2020 6:51 AM, Alasdair McAndrew wrote:
> > I am installing the Windows version of ConTeXt, which comes with a
> > VSCode extension, in
> >
> >     <ConTeXt>\tex\texmf-context\context\data\vscode\extensions
> >
> >
> > with instructions to run (from within the VSCode terminal):
> >
> >     code -- extensions-dir <above directory> -- install-extension context
> >
> >
> > The trouble is that the current ConTeXt installation (as of 65 minutes
> > ago), doesn't seem to contain an extension in the format that VSCode
> > understands.  Running that command produces the errors:
> >
> >     Installing extensions...
> >     Extension 'context' not found.
> >     Make sure you use the full extension ID, including the publisher,
> >     e.g.: ms-dotnettools.csharp
> >     Failed Installing Extensions: context:
> >
> >
> > For what it's worth, I'm running VSCode 1.46.0.
> >
> > How can I install the VSCode ConTeXt extension?
> Here i just run this (seems to work with latest update):
>
> data/context/vscode-context.cmd
>
> (I only occasionally check vscode and will look into it again when there
> is easy suffix dependent runner support. Of course I do generate the
> syntax files.)
>
> 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
>
> ___________________________________________________________________________________
>


-- 
https://numbersandshapes.net

[-- Attachment #1.2: Type: text/html, Size: 4091 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-29 12:19   ` Alasdair McAndrew
@ 2020-07-29 15:12     ` Henning Hraban Ramm
  2020-07-30  1:57       ` Alasdair McAndrew
  0 siblings, 1 reply; 17+ messages in thread
From: Henning Hraban Ramm @ 2020-07-29 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew <amca01@gmail.com>:
> 
> Thank you very much, but in fact that script file "vscode-context.cmd" really just contains the same command for installing extensions as I quoted above - and so produces the same errors.  Maybe I'll go back to trying SciTe - I gave it a bit of a go, but wasn't successful.  Of all the information on the context-wiki, and the Pragma webpage - where would I go to find the most up-to-date information about configuring an editor to work with ConTeXt in Windows?

You could try Atom and install the ConTeXt module from github.com/massifrg/language-context.
Original language-context is outdated, but upstream didn’t react to mails from Massi and me.
This version also isn’t perfect, but I’m using and occasionally updating it. (I should re-base it on the current work done for the wiki.) There’s also still no run command.

Additionally you should install 
- language-latex (contains plain TeX commands)
- language-lua
- atom-ide-terminal (for running ConTeXt in place)
- file-icons (only icon package that contains TeX icons)
- pdf-view (not very good, but good enough for simple cases)

Best, Hraban

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-29 15:12     ` Henning Hraban Ramm
@ 2020-07-30  1:57       ` Alasdair McAndrew
  2020-07-30  6:32         ` Lutz Haseloff
  2020-07-30 10:33         ` Henning Hraban Ramm
  0 siblings, 2 replies; 17+ messages in thread
From: Alasdair McAndrew @ 2020-07-30  1:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2401 bytes --]

Thanks again, I've fiddled with SciTE, but when I attempted to compile a
context file, I was told that "texexec" wasn't in my path, so somehow,
somewhere, I must have picked up an old version of the compile command.
Also, there doesn't seem to be an easy way of getting SciTE to use a
monospaced font.  I've fiddled with the customization files to no avail
whatsoever.  I think I have Atom already, but surely there should be some
easy way of getting other text editors working?

On Thu, Jul 30, 2020 at 1:13 AM Henning Hraban Ramm <texml@fiee.net> wrote:

>
> > Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew <amca01@gmail.com>:
> >
> > Thank you very much, but in fact that script file "vscode-context.cmd"
> really just contains the same command for installing extensions as I quoted
> above - and so produces the same errors.  Maybe I'll go back to trying
> SciTe - I gave it a bit of a go, but wasn't successful.  Of all the
> information on the context-wiki, and the Pragma webpage - where would I go
> to find the most up-to-date information about configuring an editor to work
> with ConTeXt in Windows?
>
> You could try Atom and install the ConTeXt module from
> github.com/massifrg/language-context.
> Original language-context is outdated, but upstream didn’t react to mails
> from Massi and me.
> This version also isn’t perfect, but I’m using and occasionally updating
> it. (I should re-base it on the current work done for the wiki.) There’s
> also still no run command.
>
> Additionally you should install
> - language-latex (contains plain TeX commands)
> - language-lua
> - atom-ide-terminal (for running ConTeXt in place)
> - file-icons (only icon package that contains TeX icons)
> - pdf-view (not very good, but good enough for simple cases)
>
> Best, Hraban
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>


-- 
https://numbersandshapes.net

[-- Attachment #1.2: Type: text/html, Size: 3516 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-30  1:57       ` Alasdair McAndrew
@ 2020-07-30  6:32         ` Lutz Haseloff
  2020-07-30 10:33         ` Henning Hraban Ramm
  1 sibling, 0 replies; 17+ messages in thread
From: Lutz Haseloff @ 2020-07-30  6:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3446 bytes --]

Hi Alasdair,

i fiddled with SciTE some years ago and ended with a file myproperties.properties in the programdata\scite directory.

In this file i set the fonts and my context command as follows:
----
# Codepages
# UTF-8
code.page=65001
output.code.page=65001
# Byte
# code.page=0

position.left=25
position.top=25
position.width=1870
position.height=1000

font.base=font:Consolas,size:15
font.monospace=$(font.base)
font.errorfont=$(font.base)
font.comment=$(font.base)
font.text=$(font.base)
font.text.comment=$(font.base)
font.embedded.base=$(font.base)
font.embedded.comment=$(font.base)
font.vbs=$(font.base)

command.1.$(file.patterns.context)=cmd /c context $(FileNameExt) && start sumatraPDF $(FileName).pdf -reuse-instance
----

The last line of SciTEGlobal.properties is
import myproperties

This works ok for me.


Greetings Lutz

Am 30. Juli 2020 03:57:26 MESZ schrieb Alasdair McAndrew <amca01@gmail.com>:
>Thanks again, I've fiddled with SciTE, but when I attempted to compile
>a
>context file, I was told that "texexec" wasn't in my path, so somehow,
>somewhere, I must have picked up an old version of the compile command.
>Also, there doesn't seem to be an easy way of getting SciTE to use a
>monospaced font.  I've fiddled with the customization files to no avail
>whatsoever.  I think I have Atom already, but surely there should be
>some
>easy way of getting other text editors working?
>
>On Thu, Jul 30, 2020 at 1:13 AM Henning Hraban Ramm <texml@fiee.net>
>wrote:
>
>>
>> > Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew
><amca01@gmail.com>:
>> >
>> > Thank you very much, but in fact that script file
>"vscode-context.cmd"
>> really just contains the same command for installing extensions as I
>quoted
>> above - and so produces the same errors.  Maybe I'll go back to
>trying
>> SciTe - I gave it a bit of a go, but wasn't successful.  Of all the
>> information on the context-wiki, and the Pragma webpage - where would
>I go
>> to find the most up-to-date information about configuring an editor
>to work
>> with ConTeXt in Windows?
>>
>> You could try Atom and install the ConTeXt module from
>> github.com/massifrg/language-context.
>> Original language-context is outdated, but upstream didn’t react to
>mails
>> from Massi and me.
>> This version also isn’t perfect, but I’m using and occasionally
>updating
>> it. (I should re-base it on the current work done for the wiki.)
>There’s
>> also still no run command.
>>
>> Additionally you should install
>> - language-latex (contains plain TeX commands)
>> - language-lua
>> - atom-ide-terminal (for running ConTeXt in place)
>> - file-icons (only icon package that contains TeX icons)
>> - pdf-view (not very good, but good enough for simple cases)
>>
>> Best, Hraban
>>
>>
>>
>___________________________________________________________________________________
>> 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
>>
>>
>___________________________________________________________________________________
>>
>
>
>-- 
>https://numbersandshapes.net

[-- Attachment #1.2: Type: text/html, Size: 4768 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-30  1:57       ` Alasdair McAndrew
  2020-07-30  6:32         ` Lutz Haseloff
@ 2020-07-30 10:33         ` Henning Hraban Ramm
  1 sibling, 0 replies; 17+ messages in thread
From: Henning Hraban Ramm @ 2020-07-30 10:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 30.07.2020 um 03:57 schrieb Alasdair McAndrew <amca01@gmail.com>:
> 
> Thanks again, I've fiddled with SciTE, but when I attempted to compile a context file, I was told that "texexec" wasn't in my path, so somehow, somewhere, I must have picked up an old version of the compile command.  Also, there doesn't seem to be an easy way of getting SciTE to use a monospaced font. 

Did you read $TEXROOT/texmf-context/context/data/scite/context/documents/scite-context-readme.pdf ?

I don’t know if that answers your questions and if it’s still current.

HR
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-12-17  9:40           ` Saša Janiška
@ 2020-12-17 15:55             ` Mikael Sundqvist
  0 siblings, 0 replies; 17+ messages in thread
From: Mikael Sundqvist @ 2020-12-17 15:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1156 bytes --]

On Thu, Dec 17, 2020 at 10:40 AM Saša Janiška <gour@atmarama.com> wrote:

> On Thu, 17 Dec 2020 07:51:34 +0100
> Mikael Sundqvist <mickep@gmail.com> wrote:
>
> > To set the color theme, click the blue button "Set color theme".
>
> So, this is the only thing which can be configured?
>
>
> Sincerely,
> Gour
>
> --
> Everyone is forced to act helplessly according to the qualities
> he has acquired from the modes of material nature; therefore no
> one can refrain from doing something, not even for a moment.
>
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

It is the only way I know of but maybe someone else knows more?

Best regards, Mikael

[-- Attachment #1.2: Type: text/html, Size: 2089 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-12-17  6:51         ` Mikael Sundqvist
@ 2020-12-17  9:40           ` Saša Janiška
  2020-12-17 15:55             ` Mikael Sundqvist
  0 siblings, 1 reply; 17+ messages in thread
From: Saša Janiška @ 2020-12-17  9:40 UTC (permalink / raw)
  To: ntg-context

On Thu, 17 Dec 2020 07:51:34 +0100
Mikael Sundqvist <mickep@gmail.com> wrote:

> To set the color theme, click the blue button "Set color theme".

So, this is the only thing which can be configured?


Sincerely,
Gour

-- 
Everyone is forced to act helplessly according to the qualities
he has acquired from the modes of material nature; therefore no
one can refrain from doing something, not even for a moment.


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-12-17  6:28       ` Saša Janiška
@ 2020-12-17  6:51         ` Mikael Sundqvist
  2020-12-17  9:40           ` Saša Janiška
  0 siblings, 1 reply; 17+ messages in thread
From: Mikael Sundqvist @ 2020-12-17  6:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2052 bytes --]

On Thu, Dec 17, 2020 at 7:28 AM Saša Janiška <gour@atmarama.com> wrote:

> On Tue, 4 Aug 2020 14:38:05 +0200
> Mikael Sundqvist <mickep@gmail.com> wrote:
>
> > To make a symlink worked well here, in the sense that I got a context
> > extension in vs code, and when opening a context file it was
> > recognized as such.
>
> I was able to install vscode extension by symlinking...
>
> > I could go into the extension settings and enable
> > color syntax. Questions:
>
> How to do that?
>
> I do not see such setting - see attached screenshot.


> > 1) Is there a way to get autocompletion on all context commands (not
> > only the ones I have in the document)? If so, how?
>
> I've the same question?
>
> > I'm on linux and with the latest standalone (lmtx if that matters).
>
> Same here.
>
> I also wonder about snippets, are there some?
>
> To write markdown, I can get great support with *any* editor - Emacs,
> Vim, Oni2, ST3(4) and same is true for PHP/HTML/CSS coding which I plan
> to do, but ConTeXt support and LSP features are not so great in
> comparison while I'd not like being forced to change (ConTeXt) markup
> due to editor-related issues.
>
> Anyone?
>
>
> Sincerely,
> Gour
>
> --
> Even the intelligent are bewildered in determining what is action
> and what is inaction. Now I shall explain to you what action is,
> knowing which you shall be liberated from all misfortune.
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

To set the color theme, click the blue button "Set color theme".

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 3257 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-08-04 12:38     ` Mikael Sundqvist
@ 2020-12-17  6:28       ` Saša Janiška
  2020-12-17  6:51         ` Mikael Sundqvist
  0 siblings, 1 reply; 17+ messages in thread
From: Saša Janiška @ 2020-12-17  6:28 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]

On Tue, 4 Aug 2020 14:38:05 +0200
Mikael Sundqvist <mickep@gmail.com> wrote:

> To make a symlink worked well here, in the sense that I got a context
> extension in vs code, and when opening a context file it was
> recognized as such.   

I was able to install vscode extension by symlinking...

> I could go into the extension settings and enable
> color syntax. Questions:  

How to do that? 

I do not see such setting - see attached screenshot.

> 1) Is there a way to get autocompletion on all context commands (not
> only the ones I have in the document)? If so, how?  

I've the same question?

> I'm on linux and with the latest standalone (lmtx if that matters).  

Same here.

I also wonder about snippets, are there some?

To write markdown, I can get great support with *any* editor - Emacs,
Vim, Oni2, ST3(4) and same is true for PHP/HTML/CSS coding which I plan
to do, but ConTeXt support and LSP features are not so great in
comparison while I'd not like being forced to change (ConTeXt) markup
due to editor-related issues. 

Anyone?


Sincerely,
Gour

-- 
Even the intelligent are bewildered in determining what is action
and what is inaction. Now I shall explain to you what action is,
knowing which you shall be liberated from all misfortune.

[-- Attachment #2: vscode-extension.jpg --]
[-- Type: image/jpeg, Size: 34513 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-08-05 20:07   ` Mikael Sundqvist
@ 2020-12-02  9:34     ` Saša Janiška
  0 siblings, 0 replies; 17+ messages in thread
From: Saša Janiška @ 2020-12-02  9:34 UTC (permalink / raw)
  To: ntg-context

On Wed, 5 Aug 2020 22:07:53 +0200
Mikael Sundqvist <mickep@gmail.com> wrote:

> * Since January, the editor supports a global tasks.json file (if I
> understood
> https://stackoverflow.com/questions/41046494/making-global-tasks-in-vs-code
> correctly).

Are those extensions only for VSCode or they should work with other
clients/editors (Emacs, Vim, ST) all of which have LSP support?


Sincerely,
Gour

-- 
A person is considered still further advanced when he regards honest
well-wishers, affectionate benefactors, the neutral, mediators, the
envious, friends and enemies, the pious and the sinners all with an
equal mind.


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-08-05  9:57 ` Jeong Dal
@ 2020-08-05 20:07   ` Mikael Sundqvist
  2020-12-02  9:34     ` Saša Janiška
  0 siblings, 1 reply; 17+ messages in thread
From: Mikael Sundqvist @ 2020-08-05 20:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2429 bytes --]

On Wed, Aug 5, 2020 at 11:57 AM Jeong Dal <haksan@me.com> wrote:

> Dear Mikael,
>
>
> 2) Is there a nice way to compile the tex file from
>
> within vs code? As of
> now, I opened a terminal and compiled from that, but that feels like the
> wrong way of doing it.
>
>
> For the first question, I don’t know either.
> For the second question, I’d like to explain what I did for compiling TeX
> file in vscode.
> Since I use vscode in MacOsX, you may find your way in Linux.
>
> There is a tasks.json file in .vscode folder.
> I added the following script in the “tasks":[ ]  and save it.
> (You have to modify the  "texmf-osx-64/bin” path in the following script
> from your machine.
>
> {
> "label": "ConTeXt LuaMetaTeX",
> "type": "shell",
> "command": "export
> PATH=/Users/graph/ConTeXtLM/tex/texmf-osx-64/bin:$PATH;mtxrun
> --autogenerate --script context --autopdf --purge '${file}'",
> "args": [],
> "options": {
> "cwd": "${fileDirname}"
> },
> "group": {
> "kind": "build",
> "isDefault": true
> }
> },
>
> When you want to compile a ConTeXt file, find “terminal > Run Build task”
> in the menu,
> then “ConTeXt LuaMetaTex” will pop up.
> Or just use the key “command-shift-B” instead using menu item.
>
> I hope that it may help.
>
> Best wishes,
>
> Dalyoung
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

Dear Dalyoung,

Thanks! That got me up and running. Maybe this can help others (or maybe it
is well-known):

* Since January, the editor supports a global tasks.json file (if I
understood
https://stackoverflow.com/questions/41046494/making-global-tasks-in-vs-code
correctly).
I updated, and indeed, that seems to work.
* I noticed that valid macros are recognized while typing, even if one has
not used them before. When one starts typing the text is non-bold, and when
it is a known macro it gets bold. That was useful.

Best regards, Mikael

[-- Attachment #1.2: Type: text/html, Size: 7381 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
       [not found] <mailman.1104.1596544715.23406.ntg-context@ntg.nl>
@ 2020-08-05  9:57 ` Jeong Dal
  2020-08-05 20:07   ` Mikael Sundqvist
  0 siblings, 1 reply; 17+ messages in thread
From: Jeong Dal @ 2020-08-05  9:57 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 1339 bytes --]

Dear Mikael,


> 2) Is there a nice way to compile the tex file from
> within vs code? As of
> now, I opened a terminal and compiled from that, but that feels like the
> wrong way of doing it.

For the first question, I don’t know either.
For the second question, I’d like to explain what I did for compiling TeX file in vscode.
Since I use vscode in MacOsX, you may find your way in Linux.

There is a tasks.json file in .vscode folder.
I added the following script in the “tasks":[ ]  and save it.
(You have to modify the  "texmf-osx-64/bin” path in the following script from your machine.

    {
            "label": "ConTeXt LuaMetaTeX",
            "type": "shell",
            "command": "export PATH=/Users/graph/ConTeXtLM/tex/texmf-osx-64/bin:$PATH;mtxrun --autogenerate --script context --autopdf --purge '${file}'",
            "args": [],
            "options": {
                "cwd": "${fileDirname}"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
     },

When you want to compile a ConTeXt file, find “terminal > Run Build task” in the menu,
then “ConTeXt LuaMetaTex” will pop up.
Or just use the key “command-shift-B” instead using menu item.

I hope that it may help.

Best wishes,

Dalyoung

[-- Attachment #1.2: Type: text/html, Size: 6551 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-30 10:25   ` Henning Hraban Ramm
@ 2020-08-04 12:38     ` Mikael Sundqvist
  2020-12-17  6:28       ` Saša Janiška
  0 siblings, 1 reply; 17+ messages in thread
From: Mikael Sundqvist @ 2020-08-04 12:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2186 bytes --]

On Thu, Jul 30, 2020 at 12:25 PM Henning Hraban Ramm <texml@fiee.net> wrote:

>
> > Am 30.07.2020 um 07:52 schrieb Jeong Dal <haksan@me.com>:
> >
> > Dear Alasdair McAndrew,
> >
> > I am using vscode in iMac, so my setting may not work for you.
> >
> >
> >
> > 1. First, find files for vscode in your TeX folder.
> >
> > In my case,
> >
> >
> /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*
> >
> > 2. In a homefolder, there is a hidden folder “.vacode”.
> >
> > Copy context/*.* to  ./vscode/extensions/context/*.*
> >
> > 3. Open vscode and enable context-extension.
> >
> > Since it was long time ago, my memory may not be correct.
> > However, I hope that it may give you an idea.
>
> It might make sense to not copy the files but symlink the folder (then it
> automatically receives updates).
> i.e.
> ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context
> ~/.vscode/extensions/
>
> Don’t know how symlinking in Windows works, though.
>
> HR
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

Hi!

To make a symlink worked well here, in the sense that I got a context
extension in vs code, and when opening a context file it was recognized as
such. I could go into the extension settings and enable color syntax.
Questions:

1) Is there a way to get autocompletion on all context commands (not only
the ones I have in the document)? If so, how?
2) Is there a nice way to compile the tex file from within vs code? As of
now, I opened a terminal and compiled from that, but that feels like the
wrong way of doing it.

I'm on linux and with the latest standalone (lmtx if that matters).

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 3246 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
  2020-07-30  5:52 ` Jeong Dal
@ 2020-07-30 10:25   ` Henning Hraban Ramm
  2020-08-04 12:38     ` Mikael Sundqvist
  0 siblings, 1 reply; 17+ messages in thread
From: Henning Hraban Ramm @ 2020-07-30 10:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 30.07.2020 um 07:52 schrieb Jeong Dal <haksan@me.com>:
> 
> Dear Alasdair McAndrew,
> 
> I am using vscode in iMac, so my setting may not work for you.
> 
> 
> 
> 1. First, find files for vscode in your TeX folder.
> 
> In my case, 
> 
> /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*
> 
> 2. In a homefolder, there is a hidden folder “.vacode”.
> 
> Copy context/*.* to  ./vscode/extensions/context/*.*
> 
> 3. Open vscode and enable context-extension.
> 
> Since it was long time ago, my memory may not be correct.
> However, I hope that it may give you an idea.

It might make sense to not copy the files but symlink the folder (then it automatically receives updates).
i.e.
ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context ~/.vscode/extensions/

Don’t know how symlinking in Windows works, though.

HR
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Installing VSCode extension?
       [not found] <mailman.958.1596074262.23406.ntg-context@ntg.nl>
@ 2020-07-30  5:52 ` Jeong Dal
  2020-07-30 10:25   ` Henning Hraban Ramm
  0 siblings, 1 reply; 17+ messages in thread
From: Jeong Dal @ 2020-07-30  5:52 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl


[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]

Dear Alasdair McAndrew,

I am using vscode in iMac, so my setting may not work for you.



1. First, find files for vscode in your TeX folder.

In my case, 

/ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*

2. In a homefolder, there is a hidden folder “.vacode”.

Copy context/*.* to  ./vscode/extensions/context/*.*

3. Open vscode and enable context-extension.

Since it was long time ago, my memory may not be correct.
However, I hope that it may give you an idea.

Best wishes,

Dalyoung

[-- Attachment #1.2: Type: text/html, Size: 1837 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-12-17 15:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28  4:51 Installing VSCode extension? Alasdair McAndrew
2020-07-28 16:50 ` Hans Hagen
2020-07-29 12:19   ` Alasdair McAndrew
2020-07-29 15:12     ` Henning Hraban Ramm
2020-07-30  1:57       ` Alasdair McAndrew
2020-07-30  6:32         ` Lutz Haseloff
2020-07-30 10:33         ` Henning Hraban Ramm
     [not found] <mailman.958.1596074262.23406.ntg-context@ntg.nl>
2020-07-30  5:52 ` Jeong Dal
2020-07-30 10:25   ` Henning Hraban Ramm
2020-08-04 12:38     ` Mikael Sundqvist
2020-12-17  6:28       ` Saša Janiška
2020-12-17  6:51         ` Mikael Sundqvist
2020-12-17  9:40           ` Saša Janiška
2020-12-17 15:55             ` Mikael Sundqvist
     [not found] <mailman.1104.1596544715.23406.ntg-context@ntg.nl>
2020-08-05  9:57 ` Jeong Dal
2020-08-05 20:07   ` Mikael Sundqvist
2020-12-02  9:34     ` Saša Janiška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).