On 6/5/23 09:30:05, Charles Mills wrote:
There are potentially three meanings for "macro" in this thread.
1. Part of what the formatting does is highlight z/OS macro names in the code.
So if you code GETMAIN it knows that is a keyword, not some random token. There
is a list of z/OS macro names in the file that makes that magic work.
2. Part of what the formatting does is highlight comments. If you code * Clear
R2 then it knows to format that in green italics. HLASM has macro comments that
begin with .* and unfortunately Notepad++ does not have any ability to
recognize comments based on their first TWO characters. You just can't do that
in a formatting file.
I wouldn't regard those two as different -- just the same operation,
possibly using different colors.
3. @Gil apparently assumed there were some sort of macros in the formatting
process itself. A macro to recognize a comment or something like that. Nope, it
does not work that way. There are no macros in the formatting file itself.
I suppose that might be done by modifying the core code of Notepad++
itself, but I doubt that's what you did.
If I were doing such a repetitive operation in XEDIT or ISPF, I would
use external code in REXX, EXEC2, CLIST, ..., commonly called a
"macro". Has Notepad++ have such a facility for encapsulating
routine repetitive operations, apparently not called a "macro"
but something else. In what language might it be coded, even as
for XEDIT or ISPF I'd use REXX or CLIST?
--
gil