5
$\begingroup$

Can anybody recommend a code editor for Windows which has GAP Syntax Highlighting? Thank you

$\endgroup$
  • $\begingroup$ (+1) It's a question which is good to have answered in a visible place. $\endgroup$ – Alexander Konovalov Nov 19 '15 at 16:58
  • $\begingroup$ GNU Emacs has a gap mode. $\endgroup$ – jdoicj Nov 21 '15 at 1:13
5
$\begingroup$

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).

  1. Download http://dev.quendi.de/gap/gap.xml
  2. In Notepad++, select “Define your language...” from the “Language” menu.
  3. In the resulting dialog, click the “Import...” button.
  4. This opens a file selector dialog, from which you should select the gap.xml file from step 1.
  5. Now close the “User Defined Language” dialog
$\endgroup$
  • $\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$ – fourier1234 Nov 19 '15 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 Nov 19 '15 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$ – Alexander Konovalov Nov 19 '15 at 16:36
  • $\begingroup$ Thanks Max I just tested the instructions and it all works fine. Thanks very much. $\endgroup$ – fourier1234 Nov 19 '15 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$ – fourier1234 Nov 19 '15 at 16:40
4
$\begingroup$

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.

$\endgroup$
3
$\begingroup$

There are a couple of packages to add GAP mode/syntax highlighting to emacs.

http://www.gap-system.org/Packages/Contrib/contrib.html

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.