A voir également:
- Coloration syntaxe pour jquery
- Trouver erreur de syntaxe fichier txt ✓ - Forum Python
- Trouver erreur de syntaxe fichier txt pix - Forum Autoit / batch
- Convertion .txt ------>.wtf HELP!!! ✓ - Forum Windows
- Syntaxe code puk orange - Guide
- La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte - Forum Logiciels
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.15.6/build/styles/default.min.css"> <script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.15.6/build/highlight.min.js"></script>et le dossier qu'on a telercharger et apès ca devrait coloré ou il faut faire un autre truc pour coorer
merci
https://www.primfx.com/forum/programmation/javascript/tuto-installer-coloration-syntaxique-633/
j'ai bien placé ces 3 lignes
ensuite j'ai bien mis bbcode
field = field.replace("code", '<div class="global-gueshi"><h3 class="CSS JavaScript PHP SQL HTML, XML"></h3></div>', false, false, 1);j'ai tester de mettre un petit code
<code=css> #global-portail { display:flex; margin-top:1em; margin-bottom:1em; }</code>et il m'affiche pas la coloration t il met le code hors du cadre
<
=css> #global-portail<br /> {<br /> display:flex;<br /> margin-top:1em;<br /> margin-bottom:1em;<br /> }<br /></code>
merci, de ton aide ;)
j'ai testteer de mettre css là ca marche
j'ai mis php dc voilà
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/agate.min.css" /> <pre> <code class="php"> <?php include "module/news/menu/gauche.php"; ?></pre></code>
mais il me dit ca l'erreur
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/agate.min.css" /> <pre> <code class="php"> <?php include "module/news/menu/gauche.php"; ?></pre></code>
il manque le nom de l'affichage des langage ;)
les numéros de lignes ;)