summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-08-30 12:28:36 +0000
committermichelou <michelou@epfl.ch>2005-08-30 12:28:36 +0000
commit35dd7bad5ea1dcaa1d9dbce154477dfe94db7cb4 (patch)
tree6a7e34f21272260f06dbf973109b0c6615186072 /doc
parent5cad7d9a1dc9d3c02c39bb04a14f346292a8ef1a (diff)
downloadscala-35dd7bad5ea1dcaa1d9dbce154477dfe94db7cb4.tar.gz
scala-35dd7bad5ea1dcaa1d9dbce154477dfe94db7cb4.tar.bz2
scala-35dd7bad5ea1dcaa1d9dbce154477dfe94db7cb4.zip
- added color for string literals.
- added external link to name "Scala".
Diffstat (limited to 'doc')
-rw-r--r--doc/introduction/ScalaIntro.xsl24
1 files changed, 16 insertions, 8 deletions
diff --git a/doc/introduction/ScalaIntro.xsl b/doc/introduction/ScalaIntro.xsl
index 0cd68aec59..3de1ab09cd 100644
--- a/doc/introduction/ScalaIntro.xsl
+++ b/doc/introduction/ScalaIntro.xsl
@@ -36,7 +36,7 @@
<xsl:template match="csharp">\CSharp</xsl:template>
<xsl:template match="dotnet">\DotNet</xsl:template>
- <xsl:template match="scala">\Scala</xsl:template>
+ <xsl:template match="scala">\href{http://scala.epfl.ch/}{\Scala}</xsl:template>
<!-- ELEMENT title, h, h3 -->
@@ -46,8 +46,12 @@
<xsl:variable name="subtitle"><xsl:value-of select="substring-after($_subtitle, ': ')" /></xsl:variable>
\section{<xsl:value-of select="$subtitle" />}
</xsl:template>
- <xsl:template match="h">\subsection*{<xsl:apply-templates />}</xsl:template>
- <xsl:template match="h3">\subsubsection*{<xsl:apply-templates />}</xsl:template>
+ <xsl:template match="h">
+\subsection*{<xsl:apply-templates />}
+ </xsl:template>
+ <xsl:template match="h3">
+\subsubsection*{<xsl:apply-templates />}
+ </xsl:template>
<!-- ELEMENT a, code, em, i, p, tt -->
@@ -101,10 +105,14 @@
<!-- ELEMENT ul, li -->
- <xsl:template match="ul">\begin{list}{-}{\setlength{\topsep}{0.0em}\setlength{\itemsep}{0.0em}}
+ <xsl:template match="ul">
+\begin{list}{-}{\setlength{\topsep}{0.0em}\setlength{\itemsep}{0.0em}}
<xsl:apply-templates />
-\end{list}</xsl:template>
- <xsl:template match="li">\item<xsl:apply-templates /></xsl:template>
+\end{list}
+ </xsl:template>
+ <xsl:template match="li">
+\item<xsl:apply-templates />
+ </xsl:template>
<!-- ELEMENT pre -->
@@ -139,12 +147,12 @@
<!-- ELEMENT str (string literal) -->
- <xsl:template match="str"><xsl:apply-templates /></xsl:template>
+ <xsl:template match="str">\textcolor{darkgreen}{<xsl:apply-templates />}</xsl:template>
<!-- ELEMENT cmt (comment) -->
- <xsl:template match="cmt"><xsl:apply-templates /></xsl:template>
+ <xsl:template match="cmt">\emph{<xsl:apply-templates />}</xsl:template>
<!-- ELEMENT div, hidden -->