Creating new styles in macros
Posted: 2007-08-06 07:13:20
Hi,
I often have to include source code (e.g. Java, C#,...) in my documents and usually want to have the code syntax highlighted.
Currently, I'm always defining some new styles for keywords, expressions, comments, etc. and then apply the styles manually. Now, I would like to automate this task using a macro, but I can't find a sample NWP macro (or some hints in the documentation) that shows me how to create a new style and how to configure it (e.g. the character style for "keywords" should set the character's attribute to "blue").
Where can I find some documentation?
Regards,
Michael
I often have to include source code (e.g. Java, C#,...) in my documents and usually want to have the code syntax highlighted.
Currently, I'm always defining some new styles for keywords, expressions, comments, etc. and then apply the styles manually. Now, I would like to automate this task using a macro, but I can't find a sample NWP macro (or some hints in the documentation) that shows me how to create a new style and how to configure it (e.g. the character style for "keywords" should set the character's attribute to "blue").
Where can I find some documentation?
Regards,
Michael