This project has moved. For the latest updates, please go here.

Wrong path to highlight.css

Topics: User Forum
Nov 22, 2007 at 3:03 PM
Hi All,

I added a couple of code blocks in my *.topic file and the resulting document display a wrong code box. After investigating I discovered that the reason IS that the path to highlight.css

Here is what the page source recalls:

<link type="text/css" rel="stylesheet" href="styles/highlight.css" />
<script type="text/javascript" src="scripts/highlight.js"></script>

Are these links correct?

If yes, why the code blocks are not displayed correctly? Do you know a workaround?

Thanks so much,

Nov 22, 2007 at 5:32 PM
Edited Nov 22, 2007 at 5:32 PM
I missed the {$pathToRoot} variable in the default templates. In the .\Templates folder, edit the Hana.xsl, Prototype.xsl, and VS2005.xsl files so that the links to those two files are as follows:

<link type="text/css" rel="stylesheet" href="{$pathToRoot}styles/highlight.css" />
<script type="text/javascript" src="{$pathToRoot}scripts/highlight.js"></script>

Nov 22, 2007 at 10:29 PM
Thanks so much Eric,

I was getting crazy to find out why...