forestryio / hugo-theme-novela

Novela, the simplest way to start publishing with Hugo and Forestry.
https://hugo-novela-forestry.netlify.app/
MIT License
361 stars 192 forks source link

Added support for java & kotlin syntax highlighting #57

Closed vinaygaba closed 4 years ago

vinaygaba commented 4 years ago

Resolves #56

Used the following link to get the relevant prism.css & prism.js files - https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+git+go+java+json+json5+kotlin+jsx+tsx+toml+typescript+yaml&plugins=line-numbers+toolbar+copy-to-clipboard

Screenshot

Java

Screen Shot 2020-09-28 at 10 11 47 AM

Kotlin

Screen Shot 2020-09-28 at 10 19 15 AM

@DirtyF 🙏

DirtyF commented 4 years ago

@vinaygaba Can you override those files i, your repository? It should override the ones from the theme. Support Java and Kotlin is not the primary goal of this theme, I don't want to end up adding all possible languages, I feel overriding the theme's default files is the best way to go here to add just the ones you need.