Topic: Editor text colour anomalies
I often notice the editor making mistakes in the colours used in the text.
I've sent an email to Jeff with attachments illustrating this.
I adopt a convention of putting debug statements between two identifying lines like this:
C--debug--------------------------------------------------------------\-
DEBUG CODE
GOES IN HERE
C--debug--------------------------------------------------------------/-
This is so that I can easily find and remove the debug code after I no longer need it.
The editing colour anomalies seem to happen when I do this.
Here is one of the examples I've emailed to Jeff, which I am reproducing here using 'BBCode', :
C--debug--------------------------------------------------------------\-
write(F%O%LU,'(2(''\par ''),
+ ''VECTR('',I2,'','',I2,'') ='',F10.2,''\par '',
+ ''RSTIF('',I2,'') ='',F10.0,''\par '',
+ ''VECTR('',I2,'',1) ='',F10.2)')
+ ILCAS,IDOFG(J), VECTR(ILCAS,IDOFG(J)),
+ JR+1, RSTIF(JR+1),
+ ILCAS, VECTR(ILCAS,1)
C--debug--------------------------------------------------------------/-
It is not caused by my use of the backslash character in text strings, by the way, because it also happens in code that does not contain a backslash. (In case anyone wants to know, I use backslash in text strings when generating output to .RTF files. In the above example, "\par " produces a CR/LF in an .RTF file).
----
John