Using the blogger web tool, have been able to paste from VSC to web tool and it will colour code.
Just need to jump to HTML view and change the style paramters of the div's from
white-space: pre;
to
white-space: pre-wrap;
which will allow for the code to wrap.
OLD: Notes for myself, as I forget by the time I write something new.
Using Visual Studio Code to create Powershell code.
You can copy and paste to word and the formatting is maintained.
Save the file as an rtf file.
Use an rtf converter to convert to HTML. I use the MultiDOC Converter (freeware).
I then paste this HTML code into Windows Live Writer.
Note: If you go from the edit tab, then live writer will change the style class to lower case, and then they wont match the uppercase class names in the code.
So to publish just paste the style block into the code page, just prior to publish.
Reference:
http://www.multidoc-converter.com/en/index.html
No comments:
Post a Comment