Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Free Nodelet hack for syntax highlighting

by cavac (Parson)
on Mar 28, 2023 at 14:45 UTC ( [id://11151294]=note: print w/replies, xml ) Need Help??


in reply to Free Nodelet hack for syntax highlighting

Another variant that might be useful, especially for copy&paste of posted code is just turning the code blocks into textarea form fields:

<script> window.addEventListener( "DOMContentLoaded", ( event ) => { document.querySelectorAll('.codeblock .codetext font').forEach(funct +ion (currentValue, currentIndex, listObj) { currentValue.innerHTML = '<textarea class="blockofcode">' + curren +tValue.innerHTML + '</textarea>'; }); } ); </script>

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11151294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-18 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found