Hi all SAS Users,
Is there any shortcut or way to italicize or bold the words in the comment part of SAS. For example, I have a code as below
/*Cut a file to three small pieces
SAS4rum:How to cut a file to many small files ? https://cutt.ly/jlVejWX
3939186,7966392.. are last obs of a random company */
data keepvar_1999_2001_1;
set keepvar_1999_2001 (obs=3939186);
run;
In this code above, I want to highlight the word "SAS4rum", "3939186", "7966392" to let the comment part more eye-catching?
I am wondering is there any way to do that for the comment part, I did a search but the results so far saying that we can specify the font in the output parts but not the comment part (inside /* */).
Warm regards.
I should clarify. You can only tell sas to bold and/or italicize ALL comments, not just some comments. So it may not be what you want.
in EG go to tools/options/sas programs submenu, click on the Editor Options button, and select the appearance tab. In the "file elements" window select the "comments" item and modify the Font Style selection button.
In SAS display manager, use the tools/options/enhanced editor submenu, then choose the appearance tab.
Check the keyboard shortcuts in SAS EG. There are no editing options for bolding, italicizing, underlining or similar. No can do 😟
You can actually bold or italicize complete comment statements, but not individual words.
Can I ask how to do it? Does it need any complicated code?
Warm regards.
I should clarify. You can only tell sas to bold and/or italicize ALL comments, not just some comments. So it may not be what you want.
in EG go to tools/options/sas programs submenu, click on the Editor Options button, and select the appearance tab. In the "file elements" window select the "comments" item and modify the Font Style selection button.
In SAS display manager, use the tools/options/enhanced editor submenu, then choose the appearance tab.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.