http://stackoverflow.com/questions/679189/formatting-code-snippets-for-blogging-on-blogger
Friday, May 27, 2011
Highlighting Syntax in Blogger and other Blogs
Ha found it already and I will figure it out later.
Multiple Lines to a Single Line using Powershell
#declare a variable to dump a text file into $a #Pipe the file into the variable using the cmdlet tee-object and pump the unwanted output to (dev) null cat temp.txt | tee-object -Variable a > $null #Place the value into a string [string]$strA = $a #Print your string or store it to another file, either way it is now #all on one line with a single CRLF at the end of the line #print to screen $strA #output to file $strA > onOneLine.txt
Update: Added the PowerShell brush for syntax highlighting
Yay another blog site about coding
This is the first post and I am going to just gloss over why I am creating this site. I am creating it to share things I find while I am developing other things. I like finding really obscure issues and just making people aware that they exist. I do not consider myself an authority on code, so please don't think everything I am saying is fact, just offering stuff for people to look at and maybe solve their problems too.
That being said there will probably be spelling mistakes, grammatical errors and other issues, but this site is not for philosophy of coding practices (I might contradict that later) it is for reference (right now) to just log things I find as I am working through out the day.
I have a lot of content I want to share and there are sites I would like to contribute to such as CodeProject.com and other sites, but I don't have the time to go through the approval process at the moment. I will polish what I did later and possibly re post certain things I have here on www.codeproject.com.
Enjoy
That being said there will probably be spelling mistakes, grammatical errors and other issues, but this site is not for philosophy of coding practices (I might contradict that later) it is for reference (right now) to just log things I find as I am working through out the day.
I have a lot of content I want to share and there are sites I would like to contribute to such as CodeProject.com and other sites, but I don't have the time to go through the approval process at the moment. I will polish what I did later and possibly re post certain things I have here on www.codeproject.com.
Enjoy
Subscribe to:
Posts (Atom)