Syntax Highlighting for static pages and html nuggets

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Syntax Highlighting for static pages and html nuggets

Post by Timbalu » Fri Mar 18, 2016 4:48 pm

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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

alex80
Posts: 1
Joined: Sun Apr 17, 2016 7:13 pm

Re: Syntax Highlighting for static pages and html nuggets

Post by alex80 » Wed Apr 20, 2016 2:02 pm

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.

Post Reply