From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108843 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Sundqvist Newsgroups: gmane.comp.tex.context Subject: Re: VisualStudioCode on Linux Date: Fri, 25 Sep 2020 07:50:33 +0200 Message-ID: References: <4FA9509B-5919-4437-9137-1FB621475329@boede.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0047422374563414573==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28402"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 25 07:52:24 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLgee-0007F1-Fw for gctc-ntg-context-518@m.gmane-mx.org; Fri, 25 Sep 2020 07:52:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DEE811654A7; Fri, 25 Sep 2020 07:51:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NcGbCZQF2Bxt; Fri, 25 Sep 2020 07:51:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EF7111654A8; Fri, 25 Sep 2020 07:51:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 98D741654A8 for ; Fri, 25 Sep 2020 07:51:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vC1s2PDuP7yR for ; Fri, 25 Sep 2020 07:51:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.181; helo=mail-qt1-f181.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 707B41654A7 for ; Fri, 25 Sep 2020 07:51:53 +0200 (CEST) Original-Received: by mail-qt1-f181.google.com with SMTP id e7so998655qtj.11 for ; Thu, 24 Sep 2020 22:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=xUh0iBUSxQa4joUQ2vAySVVz/7Saxk3us20mApEglxg=; b=hkcNg8bO+OZFHJSJuLY33spmB2qJ5OWEpW16T0gGnjvP8n48BTOvTncLQghGU5k9EN PF/R8YXOWNvatNrn59grY9JbbY/juu2shhegzOuJJW0NH9ie6kPLbw1lLdSejG52H1VT TaE4M4zZd1468Fmi6tVfBk60MC8ima5D37e8t5ogKuncTnjpTHFL4F+xNMtXQF1fvDbg TYEWXgcaGUcBOeRhifxoDYYM4JTI3nozRPoHiKjfzCiSOBk0dR0RtiXe51avzYpuDHKe eKcRadTuGA+jEd3CL6wOxNKwWCkkvJIzY8S0kdtRhrSRQJkkk22HGHbCeKATalIMS/Zb nSeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=xUh0iBUSxQa4joUQ2vAySVVz/7Saxk3us20mApEglxg=; b=ZFwSZzYkZJsXPTqA8WhUphrVHpEQFFtZJ8z+p7U2lAOdBs1bYyDxtQExPzLqT90v7g A9kyGEHmvRWhYjiQwu0yWbvMwkp+rz8IWehEr5G8wCzaHx8xy/RuFxlVcsWzjP2xbKQ/ HLozxLGgOAPzKN1cc9IzP0qvtERk3KlAmqhxd9c/qnml6GpJERwPs/r6UgkGuGTpeJZO HxF8ehBSj6ZHib10uQvJnz059IrEAM68o+GxmKgt2Lpviwh7k7Z6FMMflHqdn1FEbDAe GTkpTr8Gf7L4Tr7GYvEPwGGJkovI3TyBFR4NQalSg1bQ6ggEeFIlBg9URdMndZ2r0FVl gzaw== X-Gm-Message-State: AOAM530sV84vKBsrCuQURrbuMNrBIj6o5g8MKIbNMYqE85Bs8pdII4Bz rY2jzFxcS+nvddrFmGTvAIuqdmoke6pYOb2/GNkMsqmMLcU= X-Google-Smtp-Source: ABdhPJxovBfYivvlq1FRSxAVMrpUsS6VYdRzZsG6blk8+ual7bfkPPqv/i4WKKqWvUDmWjg3bq12SDx+CusBgLXYr1E= X-Received: by 2002:ac8:22da:: with SMTP id g26mr2839097qta.218.1601013111070; Thu, 24 Sep 2020 22:51:51 -0700 (PDT) In-Reply-To: <4FA9509B-5919-4437-9137-1FB621475329@boede.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108843 Archived-At: --===============0047422374563414573== Content-Type: multipart/alternative; boundary="000000000000c423c105b01ce993" --000000000000c423c105b01ce993 Content-Type: text/plain; charset="UTF-8" Hi, I got help from the list, and in the end I did the following (I have ConTeXt installed in $HOME/ConTeXt-lmtx/). I hope it is complete. ln -s $HOME/ConTeXt-lmtx/tex/texmf-context/context/data/vscode/extensions/context $HOME/.vscode/extensions/ Then I added a task file (also essentially found here, I think): %%% Begin of file $HOME/.config/Code/User/tasks.json { "name" : "context", "tasks" : [ { "label": "ConTeXt LuaMetaTeX", "type": "shell", "command": "export PATH=$HOME/ConTeXt-lmtx/tex/texmf-linux-64/bin/:$PATH;mtxrun --autogenerate --script context '${file}'", "args": [], "options": { "cwd": "${fileDirname}" }, "group": { "kind": "build", "isDefault": true }, "problemMatcher": [] } ] } %%% End of file Then, in the extension setting inside code, I had to enable the color scheme for context. Then it works to compile with ctrl+shift+B. /Mikael PS I also have some add-on for LaTeX installed, and for that reason I have started to use the file extension .mkiv for ConTeXt. Then the add-ons don't clash. On Thu, Sep 24, 2020 at 11:30 PM Willi Egger wrote: > Hello Linux users! > > Can somebody tell me how to get the extension for ConTeXt to be installed > for VisualStudioCode? > > Thani you in advance! > Kind regards > > Willi > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --000000000000c423c105b01ce993 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I got help from the list, and i= n the end I did the following (I have ConTeXt installed in $HOME/ConTeXt-lm= tx/). I hope it is complete.

ln -s $HOME/ConTeXt-l= mtx/tex/texmf-context/context/data/vscode/extensions/context $HOME/.vscode/= extensions/

Then I added a task file (also ess= entially found here, I think):

%%% Begin of file $= HOME/.config/Code/User/tasks.json
{
=C2=A0"nam= e" : "context",
=C2=A0"tasks" : [
=C2=A0 =C2= =A0 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "label": "ConTeXt LuaMe= taTeX",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "type": "shell&q= uot;,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "command": "export PATH= =3D$HOME/ConTeXt-lmtx/tex/texmf-linux-64/bin/:$PATH;mtxrun --autogenerate -= -script context '${file}'",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 &qu= ot;args": [],
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "options": {=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "cwd": "${fileDir= name}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 },
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 "group": {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "= ;kind": "build",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 "isDefault": true
=C2=A0 =C2=A0 =C2=A0 =C2=A0 },
=C2=A0= =C2=A0 =C2=A0 =C2=A0 "problemMatcher": []
=C2=A0 =C2=A0 }
= ]
}
%%% End of file

Then, in the = extension setting inside code, I had to enable the color scheme for context= .

Then it works to compile with ctrl+shift+B.

/Mikael

PS I also have some a= dd-on for LaTeX installed, and for that reason I have started to use the fi= le extension .mkiv for ConTeXt. Then the add-ons don't clash.

On T= hu, Sep 24, 2020 at 11:30 PM Willi Egger <context@boede.nl> wrote:
Hello Linux users!

Can somebody tell me how to get the extension for ConTeXt to be installed f= or VisualStudioCode?

Thani you in advance!
Kind regards

Willi

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000c423c105b01ce993-- --===============0047422374563414573== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0047422374563414573==--