mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 17:46:05 +02:00
fix up highlight.js support and add syntax for code examples, few homework check fixes
This commit is contained in:
parent
1f6ef958dc
commit
c133252cb6
74 changed files with 29 additions and 4930 deletions
|
@ -7,7 +7,7 @@
|
|||
Let's make your name a heading by putting the <strong>h1 tag</strong> around it. This helps to visually separate content on your site.
|
||||
</div>
|
||||
<div class="dialogue" style="left: 330px; top: 120px; width: 250px">
|
||||
Try using an h1 tag by changing the text to something like this: <strong><span id="answer"></span></strong>
|
||||
Try using an h1 tag by changing the text to something like this:<strong><span id="answer"></span></strong>
|
||||
and click save.
|
||||
</div>
|
||||
</div>
|
||||
|
@ -16,20 +16,11 @@
|
|||
<h4>Heading Tags</h4>
|
||||
<p>Here are all the heading tags, for all your needs—from the most important to the least!</p>
|
||||
|
||||
<pre>
|
||||
<code class="html">
|
||||
<h1>Really important heading!</h1>
|
||||
<h2>Secondary heading</h2>
|
||||
<h3>Tertiary heading</h3>
|
||||
<h4>Other heading</h4>
|
||||
<h5>Minor heading</h5>
|
||||
<h6>Very minor heading</h6>
|
||||
</code>
|
||||
</pre>
|
||||
<pre><code class="html"><%= erb :'tutorial/html/code_examples/3', layout: false %></code></pre>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('#answer').text(answer)
|
||||
$('#answer').text('<h1>'+sessionStorage.getItem('name')+'\'s Web Site</h1>')
|
||||
|
||||
function checkHomework() {
|
||||
var html = editor.getValue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue