Skip to content

Commit 99e5b6d

Browse files
committed
Menu: Adding code tags around the example markup for better formatting.
1 parent 55007d6 commit 99e5b6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entries/menu.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<longdesc>
88
<p>A menu can be created from any valid markup as long as the elements have a strict parent/child relationship and each menu item has an anchor. The most commonly used element is the unordered list (<code>&lt;ul></code>):</p>
99

10-
<pre><![CDATA[
10+
<pre><code><![CDATA[
1111
<ul id="menu">
1212
<li><a href="#">Item 1</a></li>
1313
<li><a href="#">Item 2</a></li>
@@ -23,19 +23,19 @@
2323
<li><a href="#">Item 4</a></li>
2424
<li><a href="#">Item 5</a></li>
2525
</ul>
26-
]]></pre>
26+
]]></code></pre>
2727

2828
<p>If you use a structure other than <code>&lt;ul></code>/<code>&lt;li></code>, including using the same element for the menu and the menu items, use the <a href="#option-menus"><code>menus</code></a> option to specify a way to differentiate the two elements, e.g., <code>menus: "div.menuElement"</code>.</p>
2929

3030
<p>Any menu item can be disabled by adding the <code>ui-state-disabled</code> class to that element.</p>
3131

3232
<p>To add icons to the menu, include them in the markup:</p>
3333

34-
<pre><![CDATA[
34+
<pre><code><![CDATA[
3535
<ul id="menu">
3636
<li><a href="#"><span class="ui-icon ui-icon-disk"></span>Save</a></li>
3737
</ul>
38-
]]></pre>
38+
]]></code></pre>
3939
<p>Menu automatically adds the necessary padding to items without icons.</p>
4040

4141
<h3>Keyboard interaction</h3>

0 commit comments

Comments
 (0)