N00b here

66 views
Skip to first unread message

Ross Boswell

unread,
Jun 26, 2012, 12:13:08 PM6/26/12
to js-code-p...@googlegroups.com
Hi I am trying to implement prettifier in my website but I am having some trouble. I haven't got the code working yet but I do get a onload="prettyPrint()" at the bottom or top of my page depending on where I put it.

here's the code

<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset=utf-8>
<title> SITE </title>
<link rel="stylesheet" type="text/css" href="/static/css/main.css" />
<link href="/blog/templates/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/blog/templates/prettify.js"></script>
<!--[if lt IE 9]>
<![endif]-->
</head>
<body>
onload="prettyPrint()"
<header><h1><a href="/blog" title="Homepage"> My Site<3 </a></h1></header> 
<nav>
<a href="/blog" class="projects"> Home</a> 
<a href="/blog/tag/projects" class="projects"> Projects</a>
<a href="/blog/blogarchives/" class="index"> Blog</a>
<a href="/blog/about" class="about"> About</a>
</nav>
<section>
<article>


<!-- blog post -->
{% block content %}
{% endblock %}
</article> <!-- blog post ends -->

</section>
<footer>
<div class="about">
</div>
<div class="poweredby">
<a href="https://www.djangoproject.com/">django powered</a>
</div>
</footer>

</body>
</html>



Reply all
Reply to author
Forward
0 new messages