Syntax Highlighting for CC3 Macros
kathorus
Traveler
I've started to mess around with macros. Since I use Notepad++ I set up a quick UDL so that I can read it better. Basically, all the keywords are blue, Macro and ENDM statements are Bold, blue, and fold. Numbers are bold black, operators including special directory symbols, semi-colons and the ^D for input are red. Labels are green. Go and Goto are maroon and include the label in maroon as well. Other text is light blue.
Figured I'd share the file, if nothing else, all the keywords (Except add-in commands) are in and you can style if as you like.
Figured I'd share the file, if nothing else, all the keywords (Except add-in commands) are in and you can style if as you like.
Comments
Guess I'll need to update my list.
Macro Endm - These are blue and bold and work with code folding.
Other Macro Keywords (Except Go Goto) - Blue
Commands usable in macros - Maroon, bold, and italic
Commands usable only on the last line - Purple, bold, italic
Go Goto - Orange and bold.
Note, this doesn't implement everything 100% - But it does make it a bit easier to read the macros. You will have to understand the context of where each item can be used.