Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from ramnathv/master
Syntax Highlighting Themes for HTML
- Loading branch information
Showing
9 changed files
with
227 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ knitr-minimal.html | |
knitr-minimal.md | ||
knitr-latex.tex | ||
png$ | ||
^\.Rproj\.user$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ inst/examples/figure | |
inst/examples/ex-out* | ||
knitr-minimal.html | ||
knitr-latex.tex | ||
|
||
.Rproj.user | ||
misc | ||
knitr.Rproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\usepackage{framed} | ||
\makeatletter | ||
\newenvironment{kframe}{% | ||
\def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep | ||
\colorbox{shadecolor}{##1}\hskip-\fboxsep | ||
% There is no \\@totalrightmargin, so: | ||
\hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% | ||
\MakeFramed {\advance\hsize-\width | ||
\@totalleftmargin\z@ \linewidth\hsize | ||
\@setminipage}}% | ||
{\par\unskip\endMakeFramed} | ||
\makeatother | ||
|
||
\definecolor{shadecolor}{rgb}{.97, .97, .97} | ||
\newenvironment{knitrout}{}{} % an empty environment to be redefined in TeX | ||
|
||
\newcommand{\SweaveOpts}[1]{} % do not interfere with LaTeX | ||
\newcommand{\SweaveInput}[1]{} % because they are not real TeX commands | ||
\newcommand{\Sexpr}[1]{} % will only be parsed by R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.knitr { | ||
background-color: #F7F7F7; | ||
border:solid 1px #B0B0B0; | ||
} | ||
.error { | ||
font-weight: bold; | ||
color: #FF0000; | ||
}, | ||
.warning { | ||
font-weight: bold; | ||
} | ||
.message { | ||
font-style: italic; | ||
} | ||
.source, .output, .warning, .error, .message { | ||
padding: 0.5em 1em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
.background{ | ||
color: #eeeeee ; | ||
} | ||
.number{ | ||
color: rgb(21,20,181) ; | ||
} | ||
|
||
.functioncall{ | ||
color: red ; | ||
} | ||
|
||
.string{ | ||
color: rgb(153,153,255) ; | ||
} | ||
|
||
.keyword{ | ||
font-weight: bolder ; | ||
color: black; | ||
} | ||
|
||
.argument{ | ||
color: rgb( 177,63,5) ; | ||
} | ||
|
||
.comment{ | ||
color: rgb( 204,204,204) ; | ||
} | ||
|
||
.roxygencomment{ | ||
color: rgb(0,151,255); | ||
} | ||
|
||
.formalargs{ | ||
color: rgb(18,182,18); | ||
} | ||
|
||
.eqformalargs{ | ||
color: rgb(18,182,18); | ||
} | ||
|
||
.assignement{ | ||
font-weight: bolder; | ||
color: rgb(55,55,98); | ||
} | ||
|
||
.package{ | ||
color: rgb(150,182,37); | ||
} | ||
|
||
.slot{ | ||
font-style:italic; | ||
} | ||
|
||
.symbol{ | ||
color: black ; | ||
} | ||
|
||
.prompt{ | ||
color: black ; | ||
} | ||
|