Closed nerdeveloper closed 3 years ago
Hi, thanks!
You can activate it by following these steps:
highlight:
enable: false #set it to false
line_number: false
auto_detect: false
tab_replace: ''
wrap: false #false
hljs: false
prismjs:
enable: true #set it to true
preprocess: true
line_number: true #optional
tab_replace: ''
hexo clean
hexo server
{% codeblock lang:js %}
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => { res.send('Hello World!') })
app.listen(port, () => {
console.log(Example app listening at http://localhost:${port}
)
})
{% endcodeblock %}
Hello, I did what you said, but still does not work.
i tried to inspect the element and I can see the prism CSS loaded on the page. I don't know what's happening
I was looking at the generated html code on your blog and it seems to be the problem with the cache.
Can you modify the code section in one of your blog posts and try to generate/deploy it again (to make sure that Hexo will re-generated the code section with prims.js)
Oh my bad, you already did it right? Anyway, have you try to clear your Hexo cache?
hey, I did everything you said
My blog is in a private repository. I just made it public though
https://github.com/nerdeveloper/blog. You can run cloning it and running it on your PC and see if it works for you please
I am closing this because i was able to figure it out. thank you once again
Hello there, This is a wonderful theme
Please I am trying to write an article and I am trying to use a particular feature in this theme||
Please how do I activate this section on this theme for code?