konst
1
Hi,
how do I get Syntax Highlighting to work?
I follow the explanation by using
code
However nothing happens.
In this topic https://forum.getkirby.com/t/extending-syntax-highlighting-in-editor/16768?u=konst it is mentioned a new editor in 3.3.2 where I even can select the languages. I just updated the core but I can’t find any of this.
How do I get syntax highlight to work?
thank you
texnixe
2
konst
3
Thank you. I will give it a try.
However shouldn’t the syntax highlight work already with Kirby 3?
My code results in this:
Are we talking about syntax highlighting in the Panel or on the frontend?
konst
5
I want to have a blog where I write articles about coding and show the code.
Just like on the Kirby Guide: Using KirbyTags in templates
Thank you for your help
texnixe
6
Our website uses prism.js
for syntax highlighting.
konst
7
Oh than I misunderstood the styleguide.
So I thought this would be integrated in kirby.
Is there a documentation on how to implement prism.js?
thank you
texnixe
8
The style guide is for people who contribute to the getkirby.com website.
Kirby doesn’t make any assumptions about your frontend code, it’s up to you to create your HTML markup, your styles and your JS where required.
The prism.js website has documentation how to set it up: https://prismjs.com/
konst
9
Alright.
Thank you for the clarification.