http://www.perlmonks.org?node_id=792313


in reply to Re: Free Nodelet hack: Syntax colouring (THX!)
in thread Free Nodelet hack: Syntax colouring

There is no "+" in the code if you use the "[download code]" link instead of cut'n'paste. Alternatively, you can edit your user settings and disable code wrapping, if you want to cut and paste, but that will lead to widened pages.

Replies are listed 'Best First'.
Re^3: Free Nodelet hack: Syntax colouring (THX!)
by LanX (Archbishop) on Aug 31, 2009 at 09:46 UTC
    I know all of this, but do beginners, too???

    A simple return to break the script-tag into two lines and you may double the number of users...

    Strange, you as a MS fan should care about brainless users ... ;-D

    Cheers Rolf

    update:

    <script> var headID = document.getElementsByTagName("head")`[0`]; var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = 'http://datenzoo.de/pub/prettify-jaap.css'; cssNode.media = 'screen'; headID.appendChild(cssNode); </script> <script type="text/javascript" src="http://datenzoo.de/pub/prettify-jaap.js"></script>
Re^3: Free Nodelet hack: Syntax colouring (THX!)
by Anonymous Monk on Aug 31, 2009 at 08:18 UTC
    That can be easily fixed with CSS overflow: auto;, you get horizontal scrolling bar instead of wide pages.