Kzit hier al een half uur te zoeken waarom de prettify niet word uitgevoerd.
index.php
header.php
footer.php
home.php
Hij doet 't niet. Echt raar, volgens google/twitter bootstrap faq/source code moet ie gewoon werken, maar hij highlight niks. M'n style.css is helemaal leeg, en de anderen zijn allemaal zo als ze mee geleverd werden met de twitter bootstrap.
index.php
PHP:
1
2
3
4
5
6
7
8
9
10
| <?php include('includes/header.php'); include('includes/nav.php'); ?> <div id="wrap" class="container"> </div> <?php include('includes/footer.php'); ?> |
header.php
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <!DOCTYPE html> <html lang="en"> <head> <!-- Meta Data --> <meta charset="utf-8"> <title>JustCandan.com</title> <!-- Styles --> <link type="text/css" href="../assets/css/style.css" rel="stylesheet" /> <link href="../assets/css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="../assets/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen"> <link href="http://twitter.github.com/bootstrap/assets/js/google-code-prettify/prettify.css" type="text/css" rel="stylesheet" /> <style> body { padding-top: 60px; } </style> </head> <body> |
footer.php
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| <!-- JQuery / Javascript --> <script type="text/javascript" src="../assets/js/jquery.js"></script> <script type="text/javascript" src="../assets/js/bootstrap.min.js"></script> <script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/google-code-prettify/prettify.js"></script> <script type="text/javascript"> $(document).ready(function() { var p = 'home'; prettyPrint(); $.ajax({ type: "POST", url: "includes/getpage.php", data: { page: p } }).done(function(ret) { $("#wrap").html(ret); }); $("ul.nav > li > a").on("click", function(e){ e.preventDefault(); p = $(this).attr('href'); $(this).parent().siblings().each(function(){ $(this).removeClass("active"); }); $(this).parent().addClass("active"); $.ajax({ type: "POST", url: "includes/getpage.php", data: { page: p } }).done(function(ret) { $("#wrap").html(ret); }); }); }); </script> </body> </html> |
home.php
HTML:
1
2
3
4
5
6
7
| <pre class="prettyprint"> // Some source code class Foo { public int Bar { get; set; } } </pre> |
Hij doet 't niet. Echt raar, volgens google/twitter bootstrap faq/source code moet ie gewoon werken, maar hij highlight niks. M'n style.css is helemaal leeg, en de anderen zijn allemaal zo als ze mee geleverd werden met de twitter bootstrap.


