alexgorbatchev/SyntaxHighlighter — Issue #99: How to disable href rendering to a link in shBrushXml.js
Author: thudoan
Created: 2012-03-09 22:21:43+00:00
State: open

I am using the shBrushzXml.js, I have added the following in my .html:

<extensions>
<extension name='Region Extension'
namespace='http://docs.rackspacecloud.com/servers/api/ext/region/v1.0'
alias='RAX-RGN'
updated='2011-10-20T00:00:00'>
<description>
Adds an attribute to the server that is used to
provide a hint as to the geographical region of server.
</description>
<link rel='describedby'
type='application/pdf'
href='http://docs.rackspacecloud.com/servers/api/ext/rax-rgn.pdf'/>
<link rel='describedby'
type='application/xml'
href='http://docs.rackspacecloud.com/servers/api/ext/rax-rgn/api.xsd'/>
</extension>
</extensions>

The problem is all the href gets rendered into anchors in the source. So for example:

href='http://docs.rackspacecloud.com/servers/api/ext/rax-rgn/api.xsd'/>

becomes:

http://docs.rackspacecloud.com/servers/api/ext/ax-rgn/api.xsd

Is there an easy way to disable this. I don't want the original text to be translated into a clickable url.