Python code highlight using the Hugo internal highligh shortcode:
from base64 import b64encode
from binascii import unhexlify
print b64encode(unhexlify("0a0b0c0d"))
CgsMDQ==
test gist1
test gist2
Powershell codecaption highlight:
Hello
1
2
3
4
5
6
# notepad does not have an entry
$ Test-Path"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe"
False
# chrome does
$ Test-Path"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"
True
Indented code block:
# notepad does not have an entry
$ Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe"
False
# chrome does
$ Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"
True