I'd be glad to share. The macros are extremely simple.
First, create a Comment character style. Mine uses a brown font color and a yellow highlight, but you can set yours up however you like. You can keep it in your Nisus New File or a special-purpose template. If you are working on a document created elsewhere, you will need to copy it into the document.
Second, assign that character a keyboard shortcut (if that's how you like to work).
If there are multiple editors, create a different comment style for each. I also have Redline and Strikethrough character styles for each editor. In my case, there are only two. All my styles have a yellow highlight; all my wife's have a pink highlight.
Third, create the following macro. Mine is called "Delete Character Style Range Text." (Yeah, not particularly eloquent.)
Code: Select all
Format:Character Style:Select Style Range
Edit:Delete
Fourth, assign it a menu key.
This will delete the range of text at the caret to which character styling has been applied. If you select a range of text (or non-contiguous ranges of text) that contains more than one instance of character styling, the macro will delete all text having the character style of the first bit of styled text in the selection. If there are multiple instances of that character style, it does not necessarily handle surrounding spaces "intelligently;" that is, you might wind up with some double spaces.
Fifth, if you want a macro that removes the character style from a range of text, "uncommenting" it and making it part of the regular flow of text, create the following macro. I call mine "Remove Character Style from Range."
Code: Select all
Format:Character Style:Select Style Range
Format:Character Style:Remove Character Styles
Sixth, assign it a menu key.
This macro works very much like the first one. If the caret is in a bit of text with a character style applied, running the macro removes the character style. If you select more than one range of text with a character style applied, the macro removes the character style from each each range. If the selection contains bits of text with different character styles, the macro will remove the character style only from text having the first character style found in the selection.
This explanation is wordy, but the macros are very simple. I hope they work for someone else until Nisus has commenting built in.
--Craig