HighlightJS Code Copying
Single line code snippet
let x = 1;
x++;
Single line code snippet
public static string GetChecksumFromFile(string file)
{
if (!File.Exists(file))
return null;
try
{
byte[] checkSum;
using (FileStream stream = File.Open(file, FileMode.Open, FileAccess.Read, FileShare.Read))
{
var md = new MD5CryptoServiceProvider();
checkSum = md.ComputeHash(stream);
}
return StringUtils.BinaryToBinHex(checkSum);
}
catch
{
return null;
}
}
Plain Text
This should be treated as just plain text
It shows as is, without any formatting
Auto-Detected
Content-Type: text/html
Accept: application/json
Content-Length: 12332