How to create html source code with syntax highlighting [no library]
Exemple
<style>
.code-str { color:#0000ee ;background:white }
</style>
<!--comment-->
<h2>header </h2>
<script>
function syntaxHighlights() {
/* Create a string object variable */
var name = 'Adam';
</script>
<h2 id="h21" class="code-str" >Welcome Visitor</h2>
<p>When in Rome, do as the Romans do.</p>
© Manajmnt code
Comments
Post a Comment
message