I am trying to highlight xml code, but the code block is blank when rendered.
I am using https://github.com/isagalaev/highlight.js for css
Any idea ?
{{}}
<context:component-scan base-package=“xap.qsg”/>
<os-remoting:annotation-support />
<os-core:embedded-space id=“space” name=“xapTutorialSpace” />
<os-core:giga-space id=“xapTutorialSpace” space=“space” />
<os-remoting:service-exporter id=“serviceExporter”/>
{{}}
Jura
2
Do you use a shortcode for this that’s perhaps not processed correctly, or where does the {{}}
come from?
Here is my shortcode
<pre class="{{ .Get 0 }} language-{{ .Get 0 }}" data-lang="{{ .Get 0 }}"> <code class="{{ .Get 0 }}"> {{.Inner}} </code> </pre>
And here is the markup call
{{<highlight xml>}} <context:component-scan base-package="xap.qsg"/> <os-remoting:annotation-support /> <os-core:embedded-space id="space" name="xapTutorialSpace" /> <os-core:giga-space id="xapTutorialSpace" space="space" /> <os-remoting:service-exporter id="serviceExporter"/> {{</highlight>}}