[p2pu-dev] jsFiddle and Syntax Highlighting

Dan Diebolt dandiebolt at gmail.com
Sat Sep 17 02:49:49 UTC 2011


You may want to raise the padding on .prettyprint to something near 10px
from its 2px value:

pre.prettyprint {
    border: 1px solid #888888;
    padding: 10px;
}

within http://p2pu.org/media/js/libs/prettify/prettify.css

Another problem with the syntax highlighting feature is that after you apply
it to a blob of code by selecting and clicking the syntax highlighting icon,
there is no visual feedback that the blob of code has been applied - the
code blob just looks like it is free flowing narrative text until the page
is actually saved when a the border above become visible. You actually have
to go into the HTML view to understand what became syntax highlighted and
the generated HTML is messy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20110916/aed52ded/attachment.html>


More information about the p2pu-dev mailing list