Diff for /markdowneditor/www/using.html between versions 1.8 and 1.9

version 1.8, 2012/10/02 00:51:03 version 1.9, 2012/10/02 01:12:21
Line 138  Components.utils.import(<span style="col Line 138  Components.utils.import(<span style="col
 <span style="color: green;">// Convert MarkDown to HTML</span>  <span style="color: green;">// Convert MarkDown to HTML</span>
 <strong style="color: violet;">var</strong> html = showdown.makeHtml(text);</pre>  <strong style="color: violet;">var</strong> html = showdown.makeHtml(text);</pre>
                                 <h5>Editor</h5>                                  <h5>Editor</h5>
                                <p>...</p>                                <p>
                                         Editor is implemented as <a href="https://developer.mozilla.org/en-US/docs/XUL_Tutorial/Introduction_to_XBL"><abbr title="XML Binding Language">XBL</abbr> 
                                         component</a> so using is pretty simple:
                                 </p>
                                 <pre><span style="color: #3F7F7F;">&lt;?xml</span> <span style="color: #95007F;">version=</span><span style="color: blue;">"1.0"</span> <span style="color: #95007F;">encoding=</span><span style="color: blue;">"UTF-8"</span><span style="color: #3F7F7F;">?&gt;</span>
 <span style="color: #3F7F7F;">&lt;?xml-stylesheet</span> <span style="color: #95007F;">href=</span><span style="color: blue;">"chrome://global/skin/"</span> <span style="color: #95007F;">type=</span><span style="color: blue;">"text/css"</span><span style="color: #3F7F7F;">?&gt;</span>
 <span style="color: #3F7F7F;">&lt;?xml-stylesheet</span> <span style="color: #95007F;">href=</span><span style="color: blue;">"chrome://markdowneditor/content/bindings.css"</span> <span style="color: #95007F;">type=</span><span style="color: blue;">"text/css"</span><span style="color: #3F7F7F;">?&gt;</span>
 
 <span style="color: #3F5FBF;">&lt;-- Window with test document --&gt;</span>
 <span style="color: #3F7F7F;">&lt;window</span> <span style="color: #95007F;">xmlns=</span><span style="color: blue;">"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"</span> 
         <span style="color: #95007F;">xmlns:html=</span><span style="color: blue;">"http://www.w3.org/1999/xhtml"</span> 
         <span style="color: #95007F;">title=</span><span style="color: blue;">"Test editor"</span><span style="color: #3F7F7F;">&gt;</span>
         
         <span style="color: #3F5FBF;">&lt;-- Editor self --&gt;</span>
         <span style="color: #3F7F7F;">&lt;markdowneditor</span> <span style="color: #95007F;">id=</span><span style="color: blue;">"testeditor"</span> <span style="color: #95007F;">flex=</span><span style="color: blue;">"1"</span><span style="color: #3F7F7F;">/&gt;</span>
         
 <span style="color: #3F7F7F;">&lt;/window&gt;</span></pre>
                                 <p class="tight"><a href="#body">Back to top</a></p>                                  <p class="tight"><a href="#body">Back to top</a></p>
                         </article>                          </article>
                         <article id="markdowneditor_notes">                          <article id="markdowneditor_notes">

Removed from v.1.8  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>