Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

108
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda