Page 1 of 1

ANSYS syntax highlighting

Posted: Fri Apr 26, 2002 1:10 pm
by Randolf Mock
Hi,

about two years ago, I contributed the ANSYS APDL (2) syntax highlighting file. Since then, I have been trying to improe the highlighting. However, there are some limitations which I cannot remove.

First of all, I'd like to have the basic math operators (i.e. +-*/) highlighted. The problem, however, is that some of the ANSYS APDL commands begin with "*" or "/". So defining the OperatorChars variable in the appropriate way has the result that the "*" and "/" commands are no more highlighted in the correct way.

The following line shows a typical ANSYS command:

nsel,s,loc,z,0.0,1.0e-3

Here, "nsel" is the command, "s", "loc", "z" are the command options. In my syntax definition file, I have included the command options in the section [Keywords 4]. As you may see, they all begin with a comma. In the ANSYS APDL, the comma is the main delimiter character. Thus it would be more elegant to be able to define the "," as the delimiter, e.g.:

DelimiterChar = ,

I have done a lot of experiments to make this work, but without success. So any help from you would be highly welcome.

Servus

Randolf