Yes, you can use the CKEditor Plugin. It has a build-in codesnippet plugin (enabled by option) for the toolbar, which highlights your code with highlight.js. You will need to drop your code parts to this button form though to get it back prepared for the highlighter in the entryform. Very easy, very nice!
Another variant would be to use the geshi plugin with the PLAIN text Editor entryforms. I am not sure this will cover staticpages and nuggets though, since I never have used it. And it is not really maintained.
Syntax Highlighting for static pages and html nuggets
Re: Syntax Highlighting for static pages and html nuggets
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Re: Syntax Highlighting for static pages and html nuggets
I use the CKEditor Plugin. Works fine for me.
I own several DJI quadcopters. If you want to know more about DJI Phantoms or Mavic Pro and Mavic Air go at djibestdrones.com. Specs, futage, cameras.