COBOL Lexer
COBOL Lexer
Is it possible to display vertical lines according to settings requested e.g. at columns 8, 12, 16, ... 72. This would help greatly in formatting COBOL code.
-
- Posts: 392
- Joined: 01.12.2020 13:46
OK, thanks. How do I edit the COBOL lexer? According to the WIki I have to install SynWrite. Is that correct?Shovel wrote:I'm not familiar with COBOL...
But if this is what you want, you can set option "margin_string" to "8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72" for COBOL lexer.
No SynWrite.Paolo_R wrote:OK, thanks. How do I edit the COBOL lexer? According to the WIki I have to install SynWrite. Is that correct?
In CudaText main menu open "Plugins > Options Editor...", here when you check "For Lexer", changed options will only apply to the Lexer specified below.
Last edited by Shovel on 24.01.2021 07:20, edited 2 times in total.
When you have file open with COBOL lexer active, open menu "Options > Settings - Lexer Specific", and check that there is a line present:
If it is there, but it is still doesn't work - maybe try restarting the editor.
Code: Select all
"margin_string": "8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72",