Hello Folks,
How to copy paste code with colors and format Cntrl+I in university edition?Everytime I pasted the code, I seem to lose the color. Also what's the short cut to format the code like an equivalent to Cntrl+I in Enterprise guide. Any ideas please?
I don't think there is any way. One of the prices of building an application to run inside a browser.
SAS University Edition does have a button to format code. It's to the left of the button to maximize view. The screen shot below shows the location.
but what does it do?
I'm facing the same problem
The "format code" button can make a program easier to read.
@ChrisHemedinger wrote a blog post about how you can do this in Enterprise Guide.
In the screen shot below, I typed a bunch of SAS statements. While you can write programs this way, it can be difficult for others to read them and understand them quickly.
After I press that "format code" button, the program looks like the screen shot below. Statements are placed on separate lines, some statements are automatically indented, and blank lines are inserted between PROCs, data steps, and comments.
Hi I'm not sure how useful this will be to you since this post like a few years old but hopefully it helps someone else.
There's a button to copy the SAS Studio code shown in screenshot (where cursor is) and when copied and pasted that way, the color remains.
Thank you so much! I was copying code into Google Docs and worrying how much time it would take to format the colors. All I had to do was highlight my code, click the Copy Code button in SAS Studio and paste regularly (Ctrl+V or Cmd+V). Hope this helps others with lots to format!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.