Different background color for source columns COBOL

I am looking for a way for downlight columns in Notepad ++.

  • the COBOL compiler ignores the first 6 columns, and all characters starting with column 73 (in any case, are ignored in column 80, 81+).
  • The seventh character has a special meaning (comment, debugging, ...).
  • From the 8th to the 11th character also have a special meaning.

To view the code, it is enough to do a reg-ex search for ^......., because it ^.{7}does not work. Using the โ€œMark Patternโ€ option, click โ€œSearch All,โ€ and you get the first 7 columns.

The problem is that when you edit the code, the marking expands / contracts / moves, and you need to repeat the mark / search.

I am using NotePad ++ 5.03 ansi w / o unicode, COBOL highlighting installed from its site.

edit: I also tried 'Options' -' View'-panel-'Primary View' - 'show vertical limit', but this is displayed in all documents and for only one column position

+3
source share
3 answers

jEdit has COBOL mode, but it also does not handle the first seven characters in a special way, unless they are followed by * or /. Then the entire line is considered as a comment.

It should be possible to change the editing mode to change this, but I'm a bit concerned about performance.

+3
source

Zeus 30 , COBOL - .

COBOL , 1-6, '*' 7 COBOL 8. 73.

COBOL.

+3

Notepad ++ .

jEdit , :

  • ColumnRuler : 1.0.2 : Brad Mace,
    .
  • COBOL, , , 73.

edit: COBOL mode ready and commited . https://sourceforge.net/tracker/index.php?func=detail&aid=2654343&group_id=588&atid=350588

+1
source

Source: https://habr.com/ru/post/1703333/


All Articles