Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

Powershell Syntax Highlighting Issue

Dear all,


Not sure if this is the proper place to post this issue.


I am totally new to Github and I am trying to make an online repository for my code, I created a new Repository and Called it Powershell, inside I created a Code snippest and I added code as below




get-content "C:\Temp\onlinecomputers.txt" | foreach-object {
  ..REst Of Code


But still there is no Syntax Highlighting appears in my code, just plain test.


Please help


Thanks a lot.


1 Reply
Ground Controller Lvl 1
Message 2 of 2

Re: Powershell Syntax Highlighting Issue

I think this was the old way. Just rename the file so that it ends in a powershell extension. CodeIWrote.ps1