An Idea Exchange for SAS software and services

Comments
by New User RikkeSBrandt
on ‎01-14-2016 06:47 AM

I totally agree. I would also like to add that I would find it useful if the 'normal' highlighting rules for datasteps and procs that exist outside of a macro, could be displayed inside the macro too. Often it is difficult to debug code, once it has been converted into a macro. Since all calls are in black text. 

 

Please consider this. 

 

Perhaps code could be highlighted with a different color in the EG when inside a macro, but following the same rules as outside. This way you could still distinguish macro syntax from other syntax even inside a long macro.

by SAS Employee Casey_SAS
on ‎04-14-2017 05:18 AM
Status changed to: Under Consideration

Thank you for submitting the suggestion. I agree that this would be a nice feature and we are reviewing the suggestion for a future release of SAS Enterprise Guide.

by Regular Contributor
‎04-14-2017 11:19 AM - edited ‎04-14-2017 11:19 AM

@Treyand @RikkeSBrandt: there is a way to get code within a macro function highlighted. See this tip on sasCommunity.org, which came about because of a similar thread here. There are two options, and what's nice is that you can use them or not, depending on your needs.

 

cc @Casey_SAS: from the tip discussion and what @Rick_SAS said in the original thread, there are good reasons the code SHOULDN'T be highlighted. But if you are debugging or expect your macro contents to be readable code, the linked tip can be useful.

Idea Statuses
Top Liked Authors