Wrong path to highlight.css

Topics: User Forum
Nov 22, 2007 at 4: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,

Alberto
Coordinator
Nov 22, 2007 at 6:32 PM
Edited Nov 22, 2007 at 6: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>

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

I was getting crazy to find out why...

Alberto