Gavin Williams
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Cutting and pasting powershell code nicelyok.. I installed the syntax highlighter and it is now putting the nice code colours on it..
It seems that I can do something similar with
‘[sourcecode language ="powershell"]
[/sourcecode]‘However the next strange thing is that when I paste two things happen.
1. All the indentations are lost
2. Doing a mouse-drag highlight copy/paste pastes it back into my script editor as one long line with not linebreaks.Am I missing something easy or else do I need to contact the plugin writer?
PS: thanks for help so far!
Forum: Everything else WordPress
In reply to: Cutting and pasting powershell code nicelyHey… something just happened on my last post!! 🙂
It looks like it’s doing the right stuff wr//t scrollbars
now if you can explain how/why it did that it will help.
Forum: Everything else WordPress
In reply to: Cutting and pasting powershell code nicelyno.. I’m a bit of a newbie at this stuff..
what is
? And what are the code syntax highlighting plugins? I'm not afraid of doing legwork/research myself but I guess I just need the first kind of directional pointersForum: Everything else WordPress
In reply to: Cutting and pasting powershell code nicelyHi esmi,
Yes thanks for that … I definitely saw all the posts around on the internet saying “don’t post from word”. Message received loud and clear.
However, what no-one seems to be able to answer is how to cut and paste while keeping the formatting. I don’t want to have to chagne font manually, and then manually recolour each of the words in the code green or red etc. And as I said, using livewriter got there eventually, but with linebreaks where there should not be.