Can anybody recommend a code editor for Windows which has GAP Syntax Highlighting? Thank you
3 Answers
I made a very simple, bare-bones GAP mode for Notepad++, which I used for a GAP course I taught. The following installation instructions are from the notes I handed to the students. (But I do not normally use Windows myself, so I haven't verified them for some time).
- Download http://dev.quendi.de/gap/gap.xml
- In Notepad++, select “Define your language...” from the “Language” menu.
- In the resulting dialog, click the “Import...” button.
- This opens a file selector dialog, from which you should select the
gap.xml
file from step 1. - Now close the “User Defined Language” dialog
-
$\begingroup$ Hi Max, I am a bit of a beginner with this stuff, how do I install your GAP mode into Notepad++? Thank you $\endgroup$ Nov 19, 2015 at 16:25
-
1$\begingroup$ I expanded the comment a bit. Let me stress that this is a super-basic mode, it only highlights keywords, and does not even try to highlight any of the gazillion function names of stuff built into GAP (I know several GAP modes for editors try to do this, but I consider it pointless, as those lists of names keep changing anyway). $\endgroup$– Max HornNov 19, 2015 at 16:30
-
1$\begingroup$ (+1) for highlighting keywords only. I've done this for PsPAD (pspad.com/en) to replace their highlight mode which exported ~4K names :) and perhaps quikcly became outdated. I am happy to share it (perhaps after testing, since I haven't used it for a while). $\endgroup$ Nov 19, 2015 at 16:36
-
$\begingroup$ Thanks Max I just tested the instructions and it all works fine. Thanks very much. $\endgroup$ Nov 19, 2015 at 16:37
-
$\begingroup$ @AlexanderKonovalov I saw a reference to your PsPad GAP Mode file on the gap-system website, if you are happy to share it I would be interested in testing that out too. $\endgroup$ Nov 19, 2015 at 16:40
Thanks for all answers and comments already there. I have updated the question Where is the GAP file editor? How do I save GAP programs? from the GAP F.A.Q to list all available modes in one place. Besides Notepad++ and PSPAd for Windows, it lists some other editors as well. In the future, please check it in the GAP F.A.Q. for any updates.
Posting this is as an answer, to save readers' time from walking through all comments and links.
-
$\begingroup$ Hi, I am totally new to GAP. Just to ask that is it possible to use Notepad++ and PSPAd to run GAP? I just downloaded them but I can't find a way to do it. $\endgroup$ May 3, 2021 at 14:33
-
$\begingroup$ @AlanWang you do not use them to run GAP. You can used them to edit GAP code which then you can read in GAP. GAP programs are just plain text files, you can edit them with your favourite text editor, but some editors have additional features like syntax highlighting which make it more convenient. You may be interested in the GAP Carpentries-style lesson, in particular this episode explaining
Read
command. $\endgroup$ May 3, 2021 at 16:10
There are a couple of packages to add GAP mode/syntax highlighting to emacs.