2013-06-11 19 views
0

我想顯示在reveal.js下面滑動顯示HTML中Reveal.js

<section> 
         <pre><code> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title>My HTML 5 Page</title> 
    <script src="modernizr.min.js"></script> 
</head> 
<body> 
    ... 
</body> 
</html> 
         </code></pre> 
</section> 

然而<html>, <head>, <body>標籤未在演示文稿中顯示。我有highlight.js加載,它似乎忽略某些元素。任何想法可能是錯的?

謝謝!

+2

http://stackoverflow.com/questions/14503631/reveal-js-html-code-syntax-higlighting-without-rendering-it – c69

回答

1

逃生的HTML標記與&lt;&gt;

&lt;section&gt; 
&lt;pre&gt;&lt;code&gt; 
&lt;html&gt; 
    &lt;head&gt; 
     &lt;meta charset="utf-8"&gt; 
     &lt;title&gt;My HTML 5 Page&lt;/title&gt; 
     &lt;script src="modernizr.min.js"&gt;&lt;/script&gt; 
    &lt;/head&gt; 
    &lt;body&gt; 
     ... 
    &lt;/body&gt; 
&lt;/html&gt; 
&lt;/code&gt;&lt;/pre&gt; 
&lt;/section&gt;