Interest in syntax highlighting for ORCA?

I know ORCA is generally popular. Would there be interest in adding syntax highlighting rules for the ORCA input generator? (Even if it’s just a small start?)

2 Likes

If there were syntax highlighting for ORCA, the implementation could serve as a reference for how to set up such an assistant to other programs, too. In particular, I think about MOPAC and its recently released version 23.2.3, in part for a publication in JOSS which is the reason why I bookmarked your post. (So far, I’m not a user of ORCA.)

1 Like

There’s actually already an example for NWChem, e.g.

You put together a set of regex patterns for keywords, title, properties, comments, etc.

          "patterns": [
            { "regexp": "\\b(?:scratch|permanent)?_dir\\b" },
            { "regexp": "\\bmemory\\b" },
          ],
          "format": { "preset": "keyword" }
        },

If you’re interested in helping put something together for MOPAC, let me know and we can start assembling the patterns for keywords, etc.

1 Like

Here’s the NWChem syntax highlighting rules.

As I said, the most important thing is to start putting together sets of keywords, etc. for ORCA, MOPAC, etc.

1 Like

I know that @brockdyer03 is planning to overhaul the ORCA generator as soon as my avogenerators PR is merged :smiley:

I imagine he could be persuaded to write syntax highlighting rules at the same time (though he has expressed a burning hatred of regex in the past).

I am indeed planning an overhaul, and even though I do hate regex, I’m going to temporarily sed -e 's/hate/love/g' so that I can get some nice syntax highlighting going.

1 Like

Simply s/hate/survive/g or s/hate/accommodate/ would probably be okay.

3 Likes