Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
prismjs not highlighting code block and also not working copy to clipboard

I am trying to use prismjs in my nextjs app for highlight my code block. But my code block not highlighting. here is my code:

I downlaoded prism.js and prism.css and added in my _app.js

_app.js
import "../styles/prism.js";
import "../styles/prism.css"; 

my blog page

import Prism from "Prismjs";

useEffect(() => {
        const highlight = async () => {
          await Prism.highlightAll(); // <--- prepare Prism
         
        };
        highlight(); // <--- call the async function
      }, []); // <--- run when post updates

   
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!