Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

107
Visualizações
Code snippet not get highlight on page navigation (without site refresh) while using run_prettify.js

We are hosting the website using the bunch of html files. In the html files, we are have the various language code snippets.

To highlight the code snippet , we have referred the https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js in our html files head section.

<head>

<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>

</head>

Also our code tag of html files having the prittyprint like below.

<div class="highlight"><pre><code class="prettyprint language-aspx-cs">@using Company.Web.Mvc.UI</code></pre></div>

Code snippet were getting highlighted on initially (page loads). But code snippet in the another page not get highlighted on page navigation. it working if we refresh the page. We are not refreshing the site on page navigation.

Actually , while clicking the toc, another page will be navigated without site refresh.

Let me know how to get the code snippet highlight on page navigation without page refresh ?

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda