In this video I show how to add code syntax highlighting to my Blazor server side blog using Highlight.js. Since our pages are rendered on the server, we have to take extra steps to ensure that our javascript is getting called correctly. To do this we have to utilize a Razor Class Library and a javascript library module from Microsofts documentation page.
Highlight.js website:
https://highlightjs.org/
Javascript from Server Side Rendered pages:
https://learn.microsoft.com/en-us/asp...
Code from this episode can be found here:
https://github.com/ScriptBytes/Blazor...
Full code for the series can be found here:
https://github.com/ScriptBytes/Blazor...
Follow me on social media!
Instagram: / scriptbytes
Threads: https://www.threads.net/@scriptbytes
Check out my blog!
https://scriptbytes.io/
Watch video Blazor Server Code Syntax Highlighting with Highlight.js | Build a Blog - Ep 04 online without registration, duration hours minute second in high quality. This video was added by user ScriptBytes 15 January 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 527 once and liked it 14 people.