Blogger and Code Highlighting
Just a few quick notes on achieving nice code highlighting for sharing. My preferred method is to use Visual Studio Code to achieve highlighting. If you have a language extension installed, then VS Code will copy with rich HTML formatting that looks sharp and consistent. But doesn't quite match the original. Here's a line of SQL: SELECT CONVERT ( DATETIME2 ( 3 ), GETDATE ()) ; And here's how it looks in my VS Code I do wish that the layered bracket highlighting would transfer over, but honestly that's a very small difference, and I give VS Code high marks for quality of export. Not long ago PowerShell code highlighting or SQL code highlighting was not this easy to achieve; since the most readily available editors didn't provide it natively. My secondary method. Code highlighting is from http://hilite.me/ Style: Monokai For PowerShell code I made a manual correction, to adjust the hard to read formatting applied to double quotes, semi-colons, e...