Cutting and pasting powershell code nicely
-
Hi All,
In a not-completely-unrelated field…
I use Powergui for my PS scripting.. and it makes the code very nice, (indentations, colour formatting etc).
However, when I try to post it to my blog (in wordpress).. the results can be very messy.
First, and most obvious, posting it via WORD makes it look very messy because of all the extra HMTL word does.
Second, posting to notepad and up loses all the font and formatting.I managed to get it to go up to wordpress in the right font and colours by using “cut and paste from PG to word… save word as HTM… open it in explorer, cut and paste it into Writer, post up via writer”. Which as you can see is very messy.
In fact, even having done that, it then wrapped the code lines around the pagewidth such that it failed when copied back into PGui.
Does anyone have an idea on how I can nicely cut and paste formatted powershell code into wordpress, (I’ve seen sometimes it is in a little window with a horizontal scroll bar)
Thanks!
Gavin
The topic ‘Cutting and pasting powershell code nicely’ is closed to new replies.