Macro Syntax Coloring macro(s)

Get help using and writing Nisus Writer Pro macros.
Post Reply
User avatar
phspaelti
Posts: 1183
Joined: 2007-02-07 00:58:12
Location: Japan

Macro Syntax Coloring macro(s)

Post by phspaelti »

Since I was asked about this, I'm posting here the macros that I use for syntax coloring in my macros. They require the use of appropriately named styles in the document.
Attachments
Macro Syntax Coloring.zip
(7.32 KiB) Downloaded 102 times
philip

B.Otter
Posts: 20
Joined: 2021-02-06 15:24:00

Re: Macro Syntax Coloring macro(s)

Post by B.Otter »

phspaelti wrote:
2021-02-17 20:27:05
Since I was asked about this, I'm posting here the macros that I use for syntax coloring in my macros. They require the use of appropriately named styles in the document.
Nice.

User avatar
phspaelti
Posts: 1183
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Macro Syntax Coloring macro(s)

Post by phspaelti »

Actually, I should put an important warning here.

This macro somewhat crudely obliterates prior formatting in the file. This will be a serious problem if your macro uses formatted text strings or attribute sensitive Find and Replace. So please use it responsibly :D
philip

Post Reply