Closed just-ero closed 1 year ago
How would one achieve this? I've tried highlight.js, which didn't appear to do anything at all.
highlight.js
Here's my attempt;
<!DOCTYPE html> <html> <head> <script type="module" src="https://md-block.verou.me/md-block.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css" /> </head> <body> <md-block> ```cs Console.WriteLine("Hello, world!");
How would one achieve this? I've tried
highlight.js
, which didn't appear to do anything at all.Here's my attempt;