forked from lix-project/hydra
Pretty log: Number lines and make them linkable
This commit is contained in:
parent
b8369a6a5f
commit
94984270b0
|
@ -48,3 +48,8 @@ span.code {
|
|||
.prio3 {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
a.lineno {
|
||||
color: #909090;
|
||||
float: right;
|
||||
}
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
|
||||
|
||||
<xsl:template match="head|line">
|
||||
<xsl:variable name="lineno"><xsl:number count="head|line" level="any" /></xsl:variable>
|
||||
<a class="lineno" href="#line-{$lineno}" id="line-{$lineno}"><xsl:value-of select="$lineno" /> </a>
|
||||
<span class="code">
|
||||
<xsl:if test="@error">
|
||||
<xsl:attribute name="class">code errorLine</xsl:attribute>
|
||||
|
|
Loading…
Reference in a new issue