pspad: -------------------------------------------------------------------------------- I am looking on your example. It really means you can have strict Cobol with code ending on column 71 and strings in this source can be longer 71 column? I don't know Cobol, can you confirm it? If this rule isn't valid, go to settings / Highlighter settings / Specification tab and increase size of end of code.
If end of code is set to 71 column, all behind this column is ignored. -------------------------------------------------------------------------------- You have two strict formats: 1. free-form reference format column 7 is for controls, coding parts start at column 8, last column for the coding parts is implementor-specific [normally column 72 (should be the standard setting) is the last one which is not ignored]. In this format you can start a string, don't add the string end on this line, starting the next line in column 7 with - and just go on with the string (needs a start on each line, string end only in the last one). The sample disppar.cob I've sent you highlights this, together with the missing of string endings in the column you can set via highlighter settings -> specification (I've set this to 72 here). It has both inline comments *> and comment lines via * in column 7 2. fixed-form reference format without any areas at all, only inline comments *>, no comment lines - see sample colors.cbl I think the best would be to split both reference formats in two highlighters, not in one. The workaround is to switch the specification settings to 7/8/72 <-> 0/1/255 (while the inline-comments don't work with this setting), depending on the reference-format currently in use. If there's anything unclear: just ask, I think we will fix it this this time (you the program while I help with the source and explanations). Simon -- <http://forum.pspad.com/read.php?6,62659,63020> PSPad freeware editor http://www.pspad.com
