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
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 -----------------------------------------------------------------
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
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
___________________________________________________________________________________
Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew
: 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
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
Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew
: 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
___________________________________________________________________________________
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
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
wrote: Am 29.07.2020 um 14:19 schrieb Alasdair McAndrew
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
___________________________________________________________________________________
Am 30.07.2020 um 03:57 schrieb Alasdair McAndrew
: 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
participants (4)
-
Alasdair McAndrew
-
Hans Hagen
-
Henning Hraban Ramm
-
Lutz Haseloff