Fossil

Changes To Cookbook
Login

Changes To Cookbook

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

482
483
484
485
486
487
488

489
490
491
492
493
494
495
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496







+







For syntax highlighting to work the Header and Footer templates need to be modified.

The examples below assume you have added the syntax highlighting library to your repository into a directory www/SyntaxHighlighter.
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:
  
  *  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>
  *  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>.

<p>
<b>Header</b>
<pre>
&lt;html&gt;
 &lt;head&gt;
 &lt;th1&gt;
   set highlighterpath "$baseurl/doc/tip/www/SyntaxHighlighter"