It seems the whole buzzword.org.uk site is down ( tobyink?). I tried to switch to the highlighting by blogs.perl.org, to have the code highlighted at least, but my jquery-fu is weak and I wasn't able to make it work.
*UPDATE*: It works. Here's the relevant part from my FreeNodelet:
<!-- Syntax HL -->
<style>
p.code {
margin-top: 2px;
margin-bottom: 2px;
background: #08080f;
}
code.prettyprint {
background-color: #112 !important;
}
</style>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" href="http://blogs.perl.org/mt/mt-static/plugin
+s/GCPrettify/prettify.css" type="text/css" media="all" />
<script src="http://blogs.perl.org/mt/mt-static/plugins/GCPrettify/pre
+ttify.js"></script>
<script>
$(document).ready(function () {
$('p.code').wrap('<pre><code class="prettyprint"></code></pre>');
$('p.code br').remove();
window.prettyPrint();
});
</script>
You might need to fix some colours, e.g. like me:
span.pln { color: #eee }
span.pun { color: #ffd }
span.typ { color: #e4e }
span.lit { color: #2dd }
span.com { color: #f11 }
I also used
$('p.code').not('.pmsig *').wrap('<pre><code class="prettyprint"></cod
+e></pre>');
to skip highlighting in signatures.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|