Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2011-02-05 22:02:35 and 2011-02-05 22:03:35

   482    482   For syntax highlighting to work the Header and Footer templates need to be modified.
   483    483   
   484    484   The examples below assume you have added the syntax highlighting library to your repository into a directory www/SyntaxHighlighter.
   485    485   To make it easier to switch between the scripts beeing part of the repository and the scripts beeing hosted on the internet, the header template defines two TH1 variables:
   486    486     
   487    487     *  highlighterpath - used for all references to the actual location of the SyntaxHighlighter. Just set those variable to the basepath of SyntaxHighlighter and you're done. If you would like to use the hosted version at alexgorbatchev.com, replace <i>$baseurl/doc/tip/www/SyntaxHighlighter</i> with <i>http://alexgorbatchev.com/pub/sh/current</i>
   488    488     *  jquerypath  - used to define the location of the used jquery script. If you want to use a hosted version, replace <i>$baseurl/doc/tip/www/SyntaxHighlighter/jquery-1.5.min.js</i> with  <i>http://code.jquery.com/jquery-1.5.min.js</i> or one of the other URLs availble at the <a href="http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery">jquery download page</a>.
          489  +
   489    490   <p>
   490    491   <b>Header</b>
   491    492   <pre>
   492    493   &lt;html&gt;
   493    494    &lt;head&gt;
   494    495    &lt;th1&gt;
   495    496      set highlighterpath "$baseurl/doc/tip/www/SyntaxHighlighter"