Copyright | © 2018 Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <markkarpov92@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Use the Skylighting library to highlight code snippets.
Synopsis
Documentation
skylighting :: Extension Source #
Use the skylighting
package to render code blocks with info strings
that result in a successful lookup from defaultSyntaxMap
.
The resulting code block will be wrapped in a div
with class
"source-code"
. The following span
classes can be used for styling:
AlertTok
="al"
AnnotationTok
="an"
AttributeTok
="at"
BaseNTok
="bn"
BuiltInTok
="bu"
CharTok
="ch"
CommentTok
="co"
CommentVarTok
="cv"
ConstantTok
="cn"
ControlFlowTok
="cf"
DataTypeTok
="dt"
DecValTok
="dv"
DocumentationTok
="do"
ErrorTok
="er"
ExtensionTok
="ex"
FloatTok
="fl"
FunctionTok
="fu"
ImportTok
="im"
InformationTok
="in"
KeywordTok
="kw"
OperatorTok
="op"
OtherTok
="ot"
PreprocessorTok
="pp"
RegionMarkerTok
="re"
SpecialCharTok
="sc"
SpecialStringTok
="ss"
StringTok
="st"
VariableTok
="va"
VerbatimStringTok
="vs"
WarningTok
="wa"