[p2pu-dev] jsFiddle and Syntax Highlighting

Dan Diebolt dandiebolt at gmail.com
Mon Sep 19 04:47:14 UTC 2011


Run that pastie through http://jsbeautifier.org/ and you will see that in
every case whatever processing is occurring on the backend it taking the
[embed:URL] and simply adding a "embeded/" at the end of the URL. This will
always results in this default tab order from left to right:

"JavaScript, Resources, HTML, CSS, and Result"

with the leftmost "JavaScript" tab visible. In most case you would want the
"Result" tab visible and might even omit the Resources tab like this:

http://jsfiddle.net/dandiebolt/agaCq/embedded/result,js,html/

Of if the fiddles was in a CSS course perhaps you would want the CSS tab to
be visible. In any case entering this embed code:

[embed:http://jsfiddle.net/dandiebolt/agaCq/embedded/result,js,html/]

results in attempting to render this URL in the <iframe>:

http://jsfiddle.net/dandiebolt/agaCq/embedded/result,js,html/embedded/

I think jsFiddle is interpreting the final embedded path as a skin which
does not exist so the fiddle renders grossly improper.

This is the problem that needs to be fixed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20110919/6552423d/attachment.html>


More information about the p2pu-dev mailing list