code style in powerpoint

Dear EE,

I want to write a script in powerpoint slide, how to write it and let it appear as code style like below:

$PropertyList = "Department", "DistinguishedName", "mail", "Name", "physicalDeliveryOfficeName", "title"
Get-ADGroupMember "IT List"| ? {$_.objectClass -eq "User"} | Get-ADUser -Properties $PropertyList | Select-Object $PropertyList | Export-Csv IT List.csv -NoTypeInformation

Open in new window


???
LVL 7
Marwan OsmanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jamie GarrochSenior Technical Consultant at BrightCarbonCommented:
What does the script that you included do? If you want to "convert" it for PowerPoint, you need to use VBA.
Marwan OsmanAuthor Commented:
The same script mentioned in my question, i only want to show it in the PowerPoint slide in code style, how to do it? Can you share with me the steps?
Marwan OsmanAuthor Commented:
I don't want to run the script, i only need to show it in the slide
Jamie GarrochSenior Technical Consultant at BrightCarbonCommented:
Ah - ok! Instructions below for PowerPoint 2013 on Windows.

1. Open PowerPoint
2. Click the Insert button
2. On your chosen slide, Insert a Textbox from the Shapes drop-down gallery
3. Copy the code snippet text to the clipboard using Ctrl+C
4. Paste the clipboard to the textbox using Ctrl+V
5. Set the font for the textbox to Courier New from the Home tab, Font group
6. Set the font size as required
7. Optionally set a Shape Fill colour for the textbox using the Format tab

Alternatively, you could insert a 2-column table (Insert / Table) and format it as show in the screenshot below, entering code line ID in column 1 and the code lines in column 2.

code-snippet-in-PowerPoint.jpg

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Marwan OsmanAuthor Commented:
many thanks Sir
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft PowerPoint

From novice to tech pro — start learning today.