4

Greetings,

I am reviewing some code in the Gauss programming language. In it, loops can begin with do and end with endo? How do I see which endo matches which do. I want to see an outline of the structure of the code. What would be really cool is to highlight in different colors different blocks of code (e.g. main loop in blue, nested loop in yellow, loop nested inside that in green, etc).

a) How can I figure out the matching do/endo pairs? b) Is the color highlighting I described possible?

stevejb
  • 2,414
  • 5
  • 26
  • 41

1 Answers1

3

Your description of what you want sounds like you need a major mode for the language. There is a full section here at EamcsWiki. Also, there was another discussion on SO about creating major mode. You could write a mode for suiting your needs, or, making the work easier, here is a gauss mode for Emacs :).

Community
  • 1
  • 1
vpit3833
  • 7,817
  • 2
  • 25
  • 25