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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: